schema-x:
[echo] performing a schema export
[java] Exception in thread "main" org.hibernate.MappingException:
could not instantiate id generator
[java] at
org.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:97)
[java] at
org.hibernate.mapping.SimpleValue.createIdentifierGenerator(SimpleValue.java:152)
[java] at
org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:182)
[java] at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
[java] at
com.u2d.persist.HBMSingleSession.init(HBMSingleSession.java:67)
[java] at com.u2d.app.Application.<init>(Application.java:51)
[java] at
com.u2d.persist.HibernatePersistor.main(HibernatePersistor.java:54)
[java] Caused by: org.hibernate.MappingException: Dialect does not
support sequences
[java] at
org.hibernate.dialect.Dialect.getSequenceNextValString(Dialect.java:531)
[java] at
org.hibernate.id.SequenceGenerator.configure(SequenceGenerator.java:65)
[java] at
org.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:93)
[java] ... 6 more
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 6 seconds
short term fix: see com.u2d.persist.HBMMaker line 600 and uncomment:
// idGenElem.addAttribute("class", "native");
and comment out the subsequent code; or temporarily use postgres.
as you know, i just open-sourced this framework and
i'm sure a number of similar issues (supporting a community using
a diverse combination of tools) will inevitably come up.
http://bugs.mysql.com/bug.php?id=16894
i have tested only with v4.x so not sure about v5.x though the bug
description
lists both versions. so i'm not sure what i can do about this for
folks who want
to run mysql on linux...which i expect to be a fairly big chunk of the
user
population..