[
https://jira.jboss.org/jira/browse/JBIDE-1176?page=com.atlassian.jira.plu...
]
Dmitry Geraskov commented on JBIDE-1176:
----------------------------------------
the ear project does not need jpa support since it does not contain
any jpa content.
When I select EAR in wizard it creates 4 projects: jpa, jpa-ear,
jpa-ejb, jpa-test.
If I add jpa facet before the project will be created the facet is added to
"jpa" project(but the classes is situated into jpa-ejb). This is a problem - we
want it is added to the "jpa-ejb".
If I add it manully to the "jpa-ejb" it works ok
When I select WAR in wizard it creates 2 projects: jpa, jpa-test. The facet is added to
the jpa project as it should be, so this works.
So it works for you as long as the entities are in the same project,
correct ?
Yes, and when persistence.xml in the project too.
(either war or ejb - but not in both)
The project are different
even from seam-project view, or?
Make Seam Web Project support the JPA facet
-------------------------------------------
Key: JBIDE-1176
URL:
https://jira.jboss.org/jira/browse/JBIDE-1176
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: UpStream
Affects Versions: 2.0.0.Beta4
Reporter: Gavin King
Assignee: Dmitry Geraskov
Fix For: 3.1.0.M4
This is not a super-high priority, since the JPA support in Eclipse is kinda lame, but
New Seam Web Project should support the JPA facet by default.
Currently, however, there is some kind of problem where the JPA validator flags
persistent classes as "does not belong to any persistence unit". So it needs to
be told where the persistence unit is, somehow.
Known problems:
1. When create Jpa Project "Utility Model" facet enabled and locked. It is not
present when create seam project.
2. If select "Java Persistence" facet and call seam project as
"jpaProj" jpa facet added to "jpaProj" but persistence.xml in
jpaProj-ejb.
--
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