Hi,

[Hibernate] and other ORMs provide some kind of [IdGenerator] that are
used to generate primary identifiers without (in most cases) querying
a database table.

Actually, in one app I need an ID immediately, so an ID generator
would be very helpful. Does something like that exist already?

As work around I use something like this:

   sess.save(myNewObject)
   sess.flush([myNewObject])

which works fine. But if I create more objects that should be flushed
in one transaction I run into dependency problems / errors.


[Hibernate] http://www.hibernate.org/
[IdGenerator] 
<http://www.allapplabs.com/hibernate/hibernate_o_r_mapping_generator_element.htm>

Thanks and best regards,
Lars
-- 
http://www.semagia.com


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to