0 Replies Latest reply on Oct 15, 2006 8:06 AM by Christoph Krammer

    Using Views

    Christoph Krammer Newbie

      Hello,

      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,
      Christoph