[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Using Views

ckrammer do-not-reply at jboss.com
Sun Oct 15 08:07:00 EDT 2006


I have a mySQL database that uses views. Is there a way to map these views to EntityBeans?

I can specify the view in the @Table annotation, but I get error when trying to get data from this:

13:57:33,755 ERROR [STDERR] java.lang.RuntimeException: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=TIGERBEE/60, BranchQual=, localId=60] status=STATUS_NO_TRANSACTION; - nested throwable: (javax.persistence.PersistenceException: org.hibernate.HibernateException: identifier of an instance of pardus.core.CustomerEntity was altered from 10001 to null)

Any idea how to proceed?

Thanks and regards,

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

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

More information about the jboss-user mailing list