Multiple Persistence Units
Hi... im having the following problem:
I have a persistence.xml with multiple persistence units defined. In each of the definitions im using true and then manually define the entities i want to associate with each persistence unit using ]]>.
IDEA seems to completely ignore the persistence.xml, because when i add a JPA facet, all the persistence units are there, just as i defined them in the persistence.xml file, but all classes im my project with the @Entity annotation are added to each of the persistence unit.
I expected that only the classes that i manually defined in the persistence.xml would be added in the IDEA persistence units facet.
Am i doing something wrong, or is this an IDEA problem?
请先登录再写评论。
http://www.jetbrains.net/jira/browse/IDEADEV-21365
Fixed,
Thank you
Roberto Cortez wrote:
Thank you for the quick response... ill be waiting for the new release :)
I'm currently using IDEA 7.0.4 Build # 7941, and I see this problem.
I have one persistence.xml in my module, but I see all the other Entity Beans from the other modules underneath this Persistence Unit and in the ER diagram.
org.hibernate.ejb.HibernatePersistence dme.dm.device.Operation ... ... ]]>
Hello Thomas,
Have you tried
<exclude-unlisted-classes>true</exclude-unlisted-classes>
setting?
Alexander.
Hi Alexander
I didn't even know it existed. Thank you for bringing back the order ;)
Thomas