JPA facet and the utility facet as fixed vs required [message #511100] |
Fri, 29 January 2010 15:13  |
Eclipse User |
|
|
|
Hi, due in part to changes in Dali 2.3 in the jpa facet implementation changing the jst.utility facet as both fixed and required to just required only, we uncovered a problem (potentially in the facet framework) detailed in https://bugs.eclipse.org/bugs/show_bug.cgi?id=301027 . Basically we're seeing unwanted facets get selected when changing the runtime target in the JPA project wizard (the configuration goes to <custom>), and the workaround is to manually select the "Minimal JPA x.y configuration"
In order to help fix the problem, we'd like to understand the reasons behind this change from the previous Dali release where the utility facet was declared in the fixed list:
<template id="jpt.jpa.template">
<label>%JPA_TEMPLATE_LABEL</label>
<fixed facet="jst.java"/>
<fixed facet="jst.utility"/>
<fixed facet="jpt.jpa"/>
<preset id="jpt.jpa.preset"/>
</template>
On a side note, if it is part of the fixed list, or if it is removed from the required list (below), the problem doesn't occur.
<project-facet-version facet="jpt.jpa" version="1.0">
<constraint>
<and>
<requires facet="jst.java" version="[5.0"/>
<or>
<requires facet="jst.utility" version="[1.0"/>
<requires facet="jst.appclient" version="[1.2"/>
<requires facet="jst.ejb" version="[1.1"/>
<requires facet="jst.connector" version="[1.0"/>
<requires facet="jst.web" version="[2.2"/>
</or>
</and>
</constraint>
</project-facet-version>
Thanks,
Len.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.10895 seconds