SEQUENCE « Transaction « JPA Q&A





1. Generate unique sequence number for entity during one day    stackoverflow.com

I need to generate unique numbers for entities inserted into a table. Each number consists from entity creation date and serial number: date + sn. Serial numbers must be reset at ...

2. Locking Issue With Sequences Is There a Better JPA Way?    java.net

Upon inserting the data I have to have a new transaction for each third level branch i insert, due to memory constraints it has to be this way. Unfortunately the generated value (sequence table) is being locked by the parent transaction and blocking the system. This does not occur with hibernate but I want to make sure this works with toplink. ...

3. SEQUENCE JPA commit    java.net

4. transactional sequence generator    forum.hibernate.org

Hi. I've implemented a queue component that can take actions and execute them in the order they were put into the queue. Each action has an id using the "sequence" hibernate generator class: Code: rb_action_id_seq ...