[
https://issues.jboss.org/browse/JBIDE-10750?page=com.atlassian.jira.plugi...
]
Max Rydahl Andersen edited comment on JBIDE-10750 at 1/31/12 9:31 AM:
----------------------------------------------------------------------
There are multiple parts here:
A) detect if JPA relevant (look for persistence.xml) and enable JPA - this will allow for
form editor of persistence.xml
B) detect which JPA runtime is available - lookup key classes to make that choice or just
look for org.hibernate | eclipselink. in persistence.xml - this will allow for hibernate
tools to be enabled when doing generation.
C) When A+B make sure Dali doesn't create/overwrite/forgets persistence.xml
D) Connection info - there is no info in pom.xml nor persistence.xml (just a datasource
name) etc. about connection info so this cannot be done automatically.
was (Author: maxandersen):
There are three parts here:
A) detect if JPA relevant (look for persistence.xml) and enable JPA - this will allow for
form editor of persistence.xml
B) detect which JPA runtime is available - lookup key classes to make that choice or just
look for org.hibernate | eclipselink. in persistence.xml - this will allow for hibernate
tools to be enabled when doing generation.
C) When A+B make sure Dali doesn't create/overwrite/forgets persistence.xml
D) Connection info - there is no info in pom.xml nor persistence.xml (just a datasource
name) etc. about connection info so this cannot be done automatically.
Archetype created projects should also be "JPA Projects"
--------------------------------------------------------
Key: JBIDE-10750
URL:
https://issues.jboss.org/browse/JBIDE-10750
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: maven
Affects Versions: 3.3.0.M5
Reporter: Burr Sutter
Assignee: Fred Bricon
Fix For: 3.3.0.Beta1
Attachments: Screen Shot 2012-01-30 at 10.27.02 AM.png, Screen Shot 2012-01-30 at
10.27.29 AM.png, Screen Shot 2012-01-30 at 10.27.43 AM.png
When the end-user selects an archetype from JBoss Central, it creates a project, in many
cases with JPA entities in that project but does not "turn on" the JPA Project
Facet. Therefore, the end-user is stuck trying to figure out how to turn on that facet
(currently undocumented). See screenshots for the current workflow.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira