I would try the following: define 1 entity bean foo.
reference it twice in xml files like this: in ejb-jar.xml <!-- define 2 entity beans based on same class --> <entity> <display-name>Foo One</display-name> <ejb-name>Foo1</ejb-name> <home>com.FooHome</home> <remote>com.FooRemote</remote> <ejb-class>com.Foo</ejb-class> </entity> <entity> <display-name>Foo Two</display-name> <ejb-name>Foo2</ejb-name> <home>com.FooHome</home> <remote>com.FooRemote</remote> <ejb-class>com.Foo</ejb-class> </entity> jbosscmp-jdbc.xml <!-- map 2 entity beans to 2 table names --> <entity> <ejb-name>Foo1</ejb-name> <table-name>FooOne</table-name> </entity> <entity> <ejb-name>Foo2</ejb-name> <table-name>FooTwo</table-name> </entity> Muthumuaran A wrote: > Hi : > > Is there a way to store the state of an EB in more > than one relational table using CMP in JBoss. > > Our entity model requires such a persistence model , > is this possible in JBoss-CMP. > > Thanks in advance. > > Regards, > muthu > > __________________________________________________ > Do You Yahoo!? > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com > > ---------------------------------------------------------------------------- > Bringing you mounds of caffeinated joy > >>> http://thinkgeek.com/sf <<< > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user -- Greg Turner Tiburon Enterprise Systems http://www.tiburon-e-systems.com Box 1171 Tiburon, CA 94920 415-332-3363 ---------------------------------------------------------------------------- Bringing you mounds of caffeinated joy >>> http://thinkgeek.com/sf <<< _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user