This content has been marked as final.
Show 2 replies
-
1. Re: How to configure persistenceContextName?
gavin.king Feb 22, 2007 11:10 AM (in response to baz)You can config any persistence context you like for a home, using entity-manager="#{mine}".
Or, if you dont like that, you can alias any name you have to "entityManager", using .
Or, you can extend EntityHome, and override getPersistenceContextName() or even getPersistenceContext().
And you are asking me for yet another way to confuse users with extra switches and options? No way! :-) -
2. Re: How to configure persistenceContextName?
baz Feb 23, 2007 2:04 AM (in response to baz)Seam is wonderful i like it more and more
but one have to take the blinkers off:-)
The configuration is as easy as putting<factory name="session" value="#{bazDatabase}"/> OR <factory name="entityManager" value="#{bazDatabase}"/>
in components.xml. This is described in chapter 4.2
I can't say why i had the position that this is not applicable in my context:-(
I had to repeat to myself: Seam is easy and consistent.
Perhaps some repetition in the docs in chapter 10( framework) with a concret example of this is a good idea.