-
1. Re: Overriding Entity Manager in Seam
rajgautam Feb 15, 2010 10:50 AM (in response to rajgautam)
Raj Gautam wrote on Feb 15, 2010 10:34:
How to override the built in seam component (Entity Manager).I am trying to implement internationalization with multilingual value in seperate table. Table structures are like:
ITEM(id,name,itemcode,bookindate)
ITEMDETAILS(itemid,locale,name)
where ITEM.name can have different value in different locale. These values for different locale are stored in the ITEMDETAIL table with corresponding locale.I ma looking for implementation which would be transparent to user and developer
for CRUD operation on ITEM entity. The idea is when entityManager.persist() is called, based on the user locale both the entities should be persisted.Is is possible to override EntityManager in Seam, and inject Overriden entityManager in the application.
Click HELP for text formatting instructions. Then edit this text and check the preview.