yes JBoss has several generators but it won't fit in nukes because of pk format. these usually creates UUID pks that are very long strings.
nukes use an Integer PK.
are you sure there is no way to get the PK via SQL ?
for instance in HsqlDB you execute special SQL that gives you the generated PK. its
as far as I remember something like :
so if you do an insert then execute SELECT IDENTITY it give you back the generated PK.
check PostGres in that way, I am pretty sure
there is something there.
I am wondering the exact same thing. Jboss dudes?
Please provide something--
Stand alone Application -- How To's
J2EE Application (Container Inspecific) -- How To's
I also want to know where can I find a tutorial on how to use Hibernate in JBoss, and how to configure the various XML files needed.
But I couldn't find any useful articles on this.
I posted my install/configuration script that gets JBoss 4.0.2 and Hibernate 3.0 up and running at http://www.jboss.org/index.html?module=bb&op=viewtopic&t=64209
Also be sure to look at org.jboss.hibernate.session.HibernateContext and it's usage. There are some differences.