[jboss-user] [EJB 3.0] - Re: ORM.xml Sample
do-not-reply at jboss.com
Thu Jan 4 13:02:52 EST 2007
Thanks for the follow-up, Wolfgang. Actually, I tried multiple options. First I completely excluded the entity elements. Then, I explicitly set the metadata-complete to false. When I looked further I discovered that the error wasn't explicitly with the EAR that contained the ORM.xml file. My other projects (different EARs) with their own EJB projects were failing to start with errors pointing back to the single query in my ORM.xml.
As it turns out if, my other EJB projects were picking up the ORM.xml in the first project. The fix: put an empy ORM.xml file in the other EJB projects. I was running for the longest time without any ORM.xml files in any of my projects and having no problems. Once I included an ORM.xml file in one of my projects, all the other ones that tried to start after that project failed unless they contained an empty ORM.xml file. It seems a bit odd, but it now works.
I hope this makes sense.
The upshot is that you can have an ORM.xml with no "entity" elements and only queries and it seems to work just fine.
Thanks for your help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998016#3998016
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998016
More information about the jboss-user