[jboss-user] [JBoss Seam] - Re: Beginner: Bind SelectOneMenu to @onetoone entity object

Interista do-not-reply at jboss.com
Sat Jan 26 15:43:23 EST 2008


I have changed it to use SMPC, but I still do get the same problem. Configuration change is:

persistence.xml:
<persistence-unit name="test" transaction-type="JTA">
  | 		<jta-data-source>java:/test-ds</jta-data-source>
  | <properties>
  | 			<property name="hibernate.hbm2ddl.auto" value="update" />
  | 			<property name="hibernate.show_sql" value="false" />
  | 			<property name="hibernate.dialect"
  | 				value="org.hibernate.dialect.MySQLDialect" />
  |             <property name="jboss.entity.manager.factory.jndi.name"
  |           value="java:/EntityManagerFactories/test-ds"/>
  |         </properties>
  |     </persistence-unit>

components.xml:

<core:managed-persistence-context name="entityManager"
  |                                       auto-create="true"
  |                                       persistence-unit-jndi-name="java:/EntityManagerFactories/test-ds">
  |     </core:managed-persistence-context>
  | 

Controller:

  | @PersistenceContext(unitName = "test")
  |     private EntityManager entityManager;
  | 

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

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



More information about the jboss-user mailing list