hi ,
i am getting an error message :
Code:
15:07:06,685 ERROR [STDERR] org.hibernate.MappingException: could not instantiate id generator
at org.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:98)
at org.hibernate.mapping.SimpleValue.createIdentifierGenerator(SimpleValue.java:152)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:192)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
at com.mts.dblayer.HibernateTools.HibernateSessionFactory.<clinit>(HibernateSessionFactory.java:54)
....
...
Caused by: org.hibernate.MappingException: Dialect does not support sequences
at org.hibernate.dialect.Dialect.getSequenceNextValString(Dialect.java:583)
at org.hibernate.id.SequenceGenerator.configure(SequenceGenerator.java:65)
i created in reverse engineering the POJO + DAO + cfg.xml
the cfg.xml is :
Code:
<hibernate-mapping>
<class entity-name="com.mts.dblayer.entities.WfNotes" table="WF_NOTES" schema="dbo" catalog="WorkFlow">
<id name="keyNum" type="java.lang.Long">
<column name="KEY_NUM" precision="18" scale="0" />
<generator class="identity" />
</id>
<version name="version" type="java.lang.Long">
<column name="VERSION" precision="10" scale="0" />
</version>
<property name="piKeyNum" type="java.lang.Long">
<column name="PI_KEY_NUM" precision="18" scale="0" not-null="true" />
</property>
<property name="description" type="java.lang.String">
<column name="DESCRIPTION" length="200" />
</property>
<property name="attachment" type="java.lang.String">
<column name="ATTACHMENT" length="100" />
</property>
<property name="noteDate" type="java.util.Date">
<column name="NOTE_DATE" length="23" />
</property>
<property name="entity" type="java.lang.String">
<column name="ENTITY" length="50" />
</property>
<property name="creationDate" type="java.util.Date">
<column name="CREATION_DATE" length="23" />
</property>
<property name="lastSubsysName" type="java.lang.String">
<column name="LAST_SUBSYS_NAME" length="30" />
</property>
<property name="lastUserName" type="java.lang.String">
<column name="LAST_USER_NAME" length="20" />
</property>
<property name="lastUpdateDate" type="java.util.Date">
<column name="LAST_UPDATE_DATE" length="23" />
</property>
<property name="createdBy" type="java.lang.String">
<column name="CREATED_BY" length="30" />
</property>
</class>
</hibernate-mapping>
pls advise .
Thanks,
Yair