Home » Search

About sequence

71-80 of 111 Refresh
JPA Doc
4

SequenceGenerator.initialValue

Annotation Element javax.persistence.SequenceGenerator int initialValue (Optional) The value from which the sequence object is to start generating. Default value: 1 Since: JPA 1.0
JPA Doc
4

SequenceGenerator.schema

Annotation Element javax.persistence.SequenceGenerator String schema (Optional) The schema of the sequence generator. Default value: "" Since: JPA 2.0
JPA Doc
4

SequenceGenerator.sequenceName

Annotation Element javax.persistence.SequenceGenerator String sequenceName (Optional) The name of the database sequence object from which to obtain primary key values. Defaults to a provider-chosen value. Default value: "" Since: JPA 1.0
Forum
4

How to package orm.xml when using EJB in WAR?

Hi, I have database utility classes in one project, the id's use sequences declared in an orm.xml ... =" SEQUENCE" generator="unit_seq"/>                 < sequence-generator name="unit_seq" sequence-name ... , suggesting that the orm.xml is found OK and that the sequences are declared properly (they also work
Forum
3

Possible issue for default id generator

generator when strategy is sequence. Error: Incomplete definition of auto value in field MyTestCase ... and 36: @GeneratedValue(strategy=GenerationType. SEQUENCE)//, generator="seq") @Id ... the GenerationType. SEQUENCE strategy without specifying a sequence is meaningless, because with no sequence
Forum
3

On ensuring ID available after persist

and IDENTITY, the SEQUENCE strategy generates an automatic value as soon as a new entity object ... depends on the database. SEQUENCE - should work well except for DBMS that do not support sequences. Regarding flush - I think it may be slower than just using SEQUENCE or TABLE. The reason
Forum
2

Change Sequcene Id

? javax.jdo.datastore. Sequence seq = em.unwrap(javax.jdo.PersistenceManager.class).getSequence ... sequence. The purpose of the allocate(...) method is different (hint to improve efficiency by pre-allocating ids). But you may define a new sequence with a new initial id, and set the relevant entity
Forum
2

com.objectdb.o.NLV cannot be cast to com.objectdb.o.CMV

(name="RecordingMetaData") @SequenceGenerator(     name="RecordingMetaData_ sequence",     sequenceName="RecordingMetaData_ sequence",     allocationSize=1 ) public class RecordingMetaData ... _ sequence",     sequenceName="RecordingMetaData_ sequence",     allocationSize=1 ) @Indices
Issue
2

Explorer bug ? Objects seem to be missing from database in Class view, but are present as references

it, it is important to understand. It seems with ObjectDB I would have to switch to TABLE or SEQUENCE ... , appears empty Ok, I've tested objectdb-2.2.5_10 on the larger test sequence of ConfigBean (not just ... relationships corresponding to the test case sequence appear correct, and the once "missing
Forum
2

Lazy loading does not work - crud takes long

") @SequenceGenerator(name = "PROJECT_ SEQUENCE", sequenceName = "PROJECT_ SEQUENCE", allocationSize = 1 ... Project implements Serializable {     @Id     @GeneratedValue(strategy = GenerationType. SEQUENCE, generator = "PROJECT_ SEQUENCE")     private Long id;     ..     ..     @OneToMany(cascade