This content has been marked as final.
Show 3 replies
-
1. Re: jar-file in persistence.xml and eclipse directory
lynchie Jul 24, 2008 10:34 AM (in response to skajotde)According to the EJB3 spec jar-file defines an archive to scan for additional entities. You cannot specify a directory here.
-
2. Re: jar-file in persistence.xml and eclipse directory
skajotde Jul 24, 2008 10:57 AM (in response to skajotde)"lynchie" wrote:
According to the EJB3 spec jar-file defines an archive to scan for additional entities. You cannot specify a directory here.
What a pity. I will have to add all classes explicit with element.
Jar way is very inflexible and works good with ears/wars deployed on server. Worse with developer IDE. Maybe vfs will do good job (lately I tested doesnt works)
Imho Ejb "next level" spec should provide user way to specify own entity scanner. Now is IoC epoch ;)
Fortunately http://www.jboss.com/index.html?module=bb&op=viewtopic&t=139699 - customize name of persistence.xml - works ;) -
3. Re: jar-file in persistence.xml and eclipse directory
lynchie Jul 25, 2008 7:00 AM (in response to skajotde)"skajotde" wrote:
"lynchie" wrote:
According to the EJB3 spec jar-file defines an archive to scan for additional entities. You cannot specify a directory here.
What a pity. I will have to add all classes explicit with <class> element.
AFAIK all entities in the jar file are added automatically even without using the element unless you use the <exclude-unlisted-classes> element