This content has been marked as final.
Show 2 replies
-
1. Re: Default Persistence Unit
clatimer Apr 30, 2008 5:18 PM (in response to victoriaonsnow.viktor.rees.nexgo.de)I have never tried this, but the unitName of @PersistenceContext defaults to "" so you could name your default persistence-unit "" and that should work.
-
2. Re: Default Persistence Unit
victoriaonsnow.viktor.rees.nexgo.de May 5, 2008 11:00 AM (in response to victoriaonsnow.viktor.rees.nexgo.de)@Chris
I tried your idea to set
name=""
in persistence.xml for the default persistence-unit. Unfortunately I got following error:
Empty string is not allowed for a persistence unit. Fix your persistence.xml fileSo, I will forget the idea of an default persistence-unit for the moment.
Thanks
Viktor