Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » CDO Hibernate Store ID Integer problem
CDO Hibernate Store ID Integer problem [message #747709] Mon, 24 October 2011 04:34 Go to previous message
Herve Ferreira is currently offline Herve Ferreira
Messages: 31
Registered: October 2011
Member

When I'm using CDO populate example It throws the following exception

[ERROR] Rollback in HibernateStore: java.lang.IllegalArgumentException: The ID value type class java.lang.Integer is not supported by this store. Method called with CDOClassifierRef(http://ojeandb/1.0, CaixaValores)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateUtil.createCDOID(HibernateUtil.java:583)


The hbm for this entity is

<class entity-name="CaixaValores" abstract="false" lazy="true" table="`caixavalores`">
<meta attribute="eclassName" inherit="false">CaixaValores</meta>
<meta attribute="epackage" inherit="false">http://ojeandb/1.0</meta>
<tuplizer entity-mode="pojo" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/>
<tuplizer entity-mode="dynamic-map" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/>
<id name="id" type="int" unsaved-value="0">
<column not-null="true" unique="false" name="`id`"/>
<generator class="identity"/>
</id>
<property name="resourceID" type="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOIDUserType">
<column name="resource_id"/>
</property>
<property name="containerID" type="string">
<column name="container_id"/>
</property>
<property name="version" type="java.lang.Integer">
<meta attribute="version">true</meta>
<column name="version"/>
</property>
<property name="nome" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`nome`"/>
</property>
<list name="aneis" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="caixavalores_aneis">
<column name="`caixavalores_aneis_id`" not-null="false" unique="false" index="CaixaValores_aneis"/>
</key>
<list-index column="`caixavalores_aneis_idx`"/>
<one-to-many entity-name="Aneis"/>
</list>
</class>



This example was retreived from examples that I made with Teneo and it works ok

So what's the problem now with CDO?

Thanks in Advance
 
Read Message
Read Message
Read Message
Previous Topic:[Dawn] Problem in Dawn***CanonicalEditPolicy getCreateViewRequest
Next Topic:[Dawn] DawnGMFHandler.Adapter Notifications, Performance Issue
Goto Forum:
  


Current Time: Sun May 19 01:28:22 EDT 2013

Powered by FUDForum. Page generated in 0.01571 seconds