-
1. Re: Change EnityManager
israel.bgf May 19, 2009 5:55 PM (in response to israel.bgf)Any guidance?
-
2. Re: Change EnityManager
gonorrhea May 19, 2009 10:39 PM (in response to israel.bgf)So I've never done what you're asking. But I just downloaded hibernate-entitymanager-3.4.0.GA.zip and extracted it. You can modify the source files that you need to modify and then build the JAR (there's a build.xml in the root). Then replace the hibernate-entitymanager.jar in server/xxx/lib directory.
Just my .02, there may be a better alternative but it seems to me this should work if you know which classes/methods to modify...
-
3. Re: Change EnityManager
gonorrhea May 19, 2009 10:40 PM (in response to israel.bgf)note that JBoss may not support your projects/envmts if you do this...
-
4. Re: Change EnityManager
gavin.king May 19, 2009 11:36 PM (in response to israel.bgf)You mean you want to wrap the Hibernate EntityManager in your own implementation of EntityManager, some kind of decorator?
Then yes, the right way to do this is to write a component that extends one of the built-in Seam components and specify that it overrides the built-in implementation using @Install.
-
5. Re: Change EnityManager
gavin.king May 19, 2009 11:37 PM (in response to israel.bgf)
Arbi Sookazian wrote on May 19, 2009 22:39:
So I've never done what you're asking. But I just downloaded hibernate-entitymanager-3.4.0.GA.zip and extracted it. You can modify the source files that you need to modify and then build the JAR (there's a build.xml in the root). Then replace the hibernate-entitymanager.jar in server/xxx/lib directory.
Just my .02, there may be a better alternative but it seems to me this should work if you know which classes/methods to modify...That's a terrible way to do approach the problem.