This is JBAS 4.03SP1/last nights EJB3 and HSQL as distributed
If I do this:
@Id @GeneratedValue(strategy=GenerationType.SEQUENCE)
long id;
works with hypersonic
however
@Id @GeneratedValue(strategy=GenerationType.AUTO)
long id;
yields lovelies like this:
[org.hibernate.persister.entity.AbstractEntityPersister] Identity
insert: insert into Folder (name, parent_id, defaultInFolder_id,
defaultOutFolder_id, TYPE, id) values (?, ?, ?, ?,
'org.jboss.mail.mailbox.Mailbox', null)
And these of course fail with not null allowed (which is how the table
was generated by hibernate) when they are executed
persistence.xml is:
<persistence>
<persistence-unit name="mail">
<jta-data-source>java:/DefaultDS</jta-data-source>
<properties>
<property name="hibernate.dialect"
value="org.hibernate.dialect.HSQLDialect"/>
<property name="hibernate.hbm2ddl.auto"
value="update"/>
<property name="jboss.entity.manager.jndi.name"
value="java:/EntityManagers/mail"/>
<property name="hibernate.show_sql"
value="true"/>
</properties>
</persistence-unit>
</persistence>
So unless I goofed something up I don't think its the dialect.
Would post in the forum or log as bug but both appear to be inoperative
at the moment. Wanted someone to tell me why I'm wrong first.
-Andy
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development