ObjectDB ObjectDB

Internal Website Search

11-20 of 200 resultsRefresh
116

IDs of Entities suddenly became UUIDs?

do have a UUID String as their id instead of Long which is of course causing a lot of troubles. Note that this even occurrs on the same "Table" -- some saved Entitities of same type do still have a Long ID ... : @Id @GeneratedId private Long myId; This has always been working, however, suddenly partial
116

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
116

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
114

Wrong @Id type

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

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
113

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; } Tsu Masaaki Tsugami You cannot set the next id
113

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 ... , please explain how exactly you create, persist and retrieve the objects. Except the id field
113

Immediately retrieve unique id

; @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sampleSeqGenerator") @Id long id; The id ... to be: SPL1, SPL2, SPL3 etc. that makes use of the id. How do I capture that id without roundtripping? I see pre and post commit, but pre the id isn't generated yet, and post I
23

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
22

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) at com ... .test.entity.Element.id using reflection at com.objectdb.o._PersistenceException.b

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support