This content has been marked as final.
Show 2 replies
-
1. Re: JPA @Column annotation does not work in JBoss5.x, MySQL
harsharuthere Sep 1, 2009 6:07 AM (in response to harsharuthere)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>
-
2. Re: JPA @Column annotation does not work in JBoss5.x, MySQL
harsharuthere Sep 18, 2009 3:04 AM (in response to harsharuthere)hi the issue was resolved. it was my mistake
1. I used @Coulmn at the getters and @ManyTOOne at the field level.
2. Also, having a field length of 255 for integer is not correct
thanks,
harsha