[
https://jira.jboss.org/jira/browse/JBIDE-5730?page=com.atlassian.jira.plu...
]
Snjezana Peco resolved JBIDE-5730.
----------------------------------
Resolution: Done
There were two issues:
1) the issue described in JBIDE-4889. It is fixed and you would need to see "Library
provided by Target Runtime" and "Disable Library Configuration" in the JPA
Implementation combobox when choosing the Hibernate platform. I suppose you are using an
older build.
2) missing User Library provider. I have added it to o.j.t.hibernate.jpt.core as follows:
<extension
point="org.eclipse.jst.common.project.facet.core.libraryProviders">
<provider id="hibernate-user-library-provider"
extends="wtp-user-library-provider">
<param name="validator"
value="org.eclipse.jst.common.project.facet.core.libprov.user.KeyClassesValidator"/>
<param name="validator.param.0"
value="javax.persistence.Entity"/>
<param name="validator.param.1"
value="org.hibernate.SessionFactory"/>
<enablement>
<and>
<with variable="requestingProjectFacet">
<test property="org.eclipse.wst.common.project.facet.core.projectFacet"
value="jpt.jpa" forcePluginActivation="true"/>
</with>
<with variable="jpaPlatform">
<equals value="hibernate"/>
</with>
</and>
</enablement>
</provider>
</extension>
See the hibernate1.png screenshot.
If you add the JBoss Maven integration facet, you will also get the Hibernate Maven
provider (see screenshot hibernate2.png).
By mistake, I added "https://jira.jboss.org/jira/browse/JBIDE-4889" as a comment
when I committed the fix.
Hibernate not supported as platform for JPA facet
-------------------------------------------------
Key: JBIDE-5730
URL:
https://jira.jboss.org/jira/browse/JBIDE-5730
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Hibernate
Affects Versions: 3.1.0.CR1
Environment: Eclipse SDK-M20091216-0800, WTP M-3.1.2-20100114053847, JBossTools
snapshot 201001211655N-H157
Reporter: Juergen Zimmermann
Assignee: Snjezana Peco
Fix For: 3.1.0.CR2
Attachments: hibernate1.png, hibernate2.png, screenshot-jpa-facet-generic.jpg,
screenshot-jpa-facet.jpg
I cannot select Hibernate as a platform for the JPA facet when creating a web project. A
screenshot will be provided.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira