[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-2750) Oracle9i dialect do not support SequenceStyleGenerator

Steve Ebersole (JIRA) noreply at atlassian.com
Wed Oct 3 02:42:24 EDT 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HHH-2750.
-------------------------------

    Resolution: Cannot Reproduce

this has to be a version mismatch...

> Oracle9i dialect do not support SequenceStyleGenerator
> ------------------------------------------------------
>
>                 Key: HHH-2750
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2750
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.2.3
>         Environment: Oracle9i
>            Reporter: Richard Lee
>         Attachments: dynamicMap.hbm.xml
>
>
> In the hibernate.cfg.xml set :
> <property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
> <property name="hbm2ddl.auto">update</property>
> Java Code:
> private void createSubnet() {
> 		Session session = HibernateSessionFactory.getSession();
> 		HashMap<String, Object> subNet = new HashMap<String, Object>();
> 		subNet.put("ISDELETE", Boolean.FALSE);
> 		Timestamp now = DateUtil.getNow();
> 		subNet.put("CREATE_TIME", now);
> 		subNet.put("LAST_MODIFY_TIME", now);
> 		Transaction tx = session.beginTransaction();
> 		session.save("SUB_NET", subNet);
> 		tx.commit();
> 		session.flush();
> 		HibernateSessionFactory.closeSession();
> }
> Exception:
> Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.dialect.Dialect.getCreateSequenceStrings(Ljava/lang/String;II)[Ljava/lang/String;
> 	at org.hibernate.id.enhanced.SequenceStructure.sqlCreateStrings(SequenceStructure.java:97)
> 	at org.hibernate.id.enhanced.SequenceStyleGenerator.sqlCreateStrings(SequenceStyleGenerator.java:168)
> 	at org.hibernate.cfg.Configuration.generateSchemaUpdateScript(Configuration.java:1051)
> 	at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:140)
> 	at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:314)
> 	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1291)
> 	at com.ultrapower.oe.util.HibernateSessionFactory.rebuildSessionFactory(HibernateSessionFactory.java:89)
> 	at com.ultrapower.oe.util.HibernateSessionFactory.getSession(HibernateSessionFactory.java:63)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list