[jboss-dev-forums] [Persistence Development] - Re: JPA @Column annotation does not work in JBoss5.x, MySQL

harshajbharsha do-not-reply at jboss.com
Tue Sep 1 06:07:44 EDT 2009


sorry persistence.xml got removed all property tags
here is the one

  | <?xml version="1.0" encoding="UTF-8"?>
  | <persistence xmlns="http://java.sun.com/xml/ns/persistence"
  |     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |     xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
  |     http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
  |     
  | 	<persistence-unit name="atspu" transaction-type="JTA">
  |   		<jta-data-source>java:ats</jta-data-source>
  |   		<class>org.hibernate.ejb.HibernatePersistence</class>
  |   		<properties>
  | 	  		<property name="hibernate.hbm2ddl.auto" value="update" />
  | 	  		<property name="hibernate.show_sql" value="true"/>
  | 	  		<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"></property>
  | 	  		<property name="hibernate.transaction.manager_lookup_class" 
  | 	  		value="org.hibernate.transaction.JBossTransactionManagerLookup" />
  |   		</properties>
  | 	</persistence-unit>  
  | </persistence>
  | 
  | 

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

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



More information about the jboss-dev-forums mailing list