[jboss-user] [EJB 3.0] - Re: Specifying which persistence unit to use for Entity Bean

cashMAR do-not-reply at jboss.com
Thu May 31 06:11:06 EDT 2007


In your persistence.xml set following properties 

  | <persistence>
  |   <persistence-unit name="unit1"> 
  |     ...
  |      <exclude-unlisted-classes>true</exclude-unlisted-classes>
  |      <class>entityBean1</class>
  |      <class>entityBean2</class>
  |      ...
  |   </persistence-unit>
  |   <persistence-unit name="unit2"> 
  |     ...
  |      <exclude-unlisted-classes>true</exclude-unlisted-classes>
  |      <class>entityBean3</class>
  |      <class>entityBean4</class>
  |      ...
  |   </persistence-unit>
  | 
  | </persistence>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050071#4050071

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050071



More information about the jboss-user mailing list