- 
        1. Re: Custom EntityManager or Unwanted Entites not loadedstephen Jun 19, 2008 1:47 PM (in response to jbossindia)You question is a little hard to parse ;-) Anyway: Maybe a Hibernate filter is what you need? See the hibernate docs: How Seam makes using filters easier: 
- 
        2. Re: Custom EntityManager or Unwanted Entites not loadedbtonez Jun 19, 2008 4:37 PM (in response to jbossindia)I think that what he's asking is to programatically ensure that the developers in his project all specify a tenentid in their HQL query strings. If you really need to do this at runtime (it would be a performance hit), take a look at the classes in src/main/org/jboss/seam/persistence. You might be able to override one of them, then explicitly install it in components.xml. Even better, see if there's some way to add a restriction to your build that searches java files for strings beginning with select orfrom , then checks that they include tenentid before allowing the files to be compiled. This would find bugs at compile time, not runtime.
 
     
    