Home » Search

About IDE

21-30 of 200Refresh
Forum
19

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

modifiers for field uk.co.his.experiment8.cmdline.objdb.CompoundKeyMapItem.container (javax.persistence.Id ... .CompoundKeyMapItem.container (javax.persistence.Id, javax.persistence.ManyToOne) at com.objectdb.o.MSG.d(MSG ... ; import javax.persistence.FlushModeType; import javax.persistence.Id; import javax.persistence
Forum
19

On ensuring ID available after persist

, which relies on an "external" entity object having a non-null id after it has been passed ... up to another element) I am using the following for the ID: @Id //@GeneratedValue(strategy ... AUTO public Long getId() { return id; } The javadocs for EntityManager.persist
Issue
19

When using inheritance, you can specify, which ID to use

When storing objects with inheritance, it should be possible to choose, which ID (parent or child class) should be used for new object. For example: public EntityA() {     @Id     long id;     String field1; }   public EntityB() extends EntityA() {     @Id     long id;     String field2
Forum
18

Wrong @Id type

Hi,  I have noticed some values of id column suddenly switched to int, although it is declared as ... ? Try the last ObjectDB version, which should fix this issue/ To repair IDs that have already changed ... before the fix, with an UPDATE queries that change the IDs to the correct type). We are using ObjectDB
Forum
18

Change Sequcene Id

could I change sequcence id ? allocating small value may not be effect. or something other ways ... MyEntity is defined with JPA @Entity public class MyEntity {     @Id     @GeneratedValue(strategy=GenerationType.IDENTITY)     private Long id; }   You cannot set the next id of an existing
Forum
18

multi thread application, id field sporadically null

with the field that is declared as @Id having the value null (what is not correct, we checked ... Serializable { private static final long serialVersionUID = 1L; @Id public String nodePath ... you create, persist and retrieve the objects. Except the id field, are other fields initialized correctly
Forum
18

Populating entity id before transaction commit

Hi, I have a question about populating auto generated id before transaction commit. We are using ... transaction is committed so all returned entities are not populated with ID in this context. How can I force ODB to populate entity ID before transaction is committed? Or maybe there is another way
Issue
18

ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection

to set numeric value of field property com.greensoft.objectdb.test.entity.Element.id using reflection ... of field property com.greensoft.objectdb.test.entity.Element.id using reflection (error 613 ... .test.entity.Element.id using reflection at com.objectdb.o._PersistenceException.b
Forum
18

Immediately retrieve unique id

; @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sampleSeqGenerator") @Id long id;   The id field is as expected when I browse the database: 1,2,3,4 etc. I would like the field sampleName to be: SPL1, SPL2, SPL3 etc. that makes use of the id. How do I capture that id without roundtripping
Manual
18

Database Transaction Replayer

contains two types of files: Backup files - with names of the form id>.odb Recording files - with names of the form id>.odr A backup file is an ordinary ObjectDB database file that reflects the state of the database at the end of a specific transaction. The ID