2 Replies Latest reply on Jul 20, 2007 5:09 PM by Ning Zhao

    Can @In be used in entity classes?

    Ning Zhao Apprentice

      Hi folks,

      I'm trying to externalize all the business logic to rule files for each entity. With Seam this is conceptually not complex to do at all, in fact really straight forward. I just need a ruleBase /managedWorkingMemory for each entity and configure them in the component.xml. But then I need something like this in each entity class:

      @Entity @Name("foo") @Table....
      public class Foo implements Serializable {
      ...
      @In(create = true)
      private RuleBase fooBusinessLogics;
      
      ...
      }
      


      Can entity classes also use @In ? Thanks!


      Regards,
      Ellen