Home » Search

About IDE

21-30 of 200Refresh
Issue
20

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
20

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
Manual
20

JPA Entity Fields

(Mapped By) fields Primary key (ID) fields Version field The first three groups (transient, persistent ... (AccessType.PROPERTY) public static class PropertyAccess { private int _id; @Id int getId() { return _id; } void setId(int id) { _id = id; } private String str; String getStr
Tutorial
20

Step 1: Install BIRT and ObjectDB Driver

of the Eclipse IDE that includes BIRT built in. This option may be useful if you are not using the Eclipse IDE for Java EE Developers. Update your existing Eclipse IDE for Java EE Developers environment by installing the BIRT plugins using the Eclipse Update Manager (updating Eclipse IDE with no Java EE support
Forum
20

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
20

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
20

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
20

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
20

Uninitialized primary key (id = 0)

the only one record is id=0. What situation will be id=0? TIA This happens if you define an id field ... objects with IDs > 0 that you previously set manually. You may also try a different strategy. For example, if you use a sequence or table - you can set an initial ID which is larger than any existing ID to avoid any conflict. gzdillon
Forum
19

@SequenceGenerator and single id in whole database

of my model enitities, but it looks like id's are generated using only one, shared generator. Is there any ... these generators to @Id fields in different classes. Make sure you set both the strategy and the generator ... ", initialValue = 1000) @GeneratedValue(generator = "XXX") @Id private long id; As I understand default