ObjectDB Database Search
101-137 of 137 resultsProblem with bidirectional link the problem by annotating the id field with @ GeneratedValue . I will check how the error message that ObjectDB produces in this case can be improved. support Support | |
Extra uninitialised entities spawned on merge(); @Id @ GeneratedValue   | |
NullPointerException while setting a new property value): @Entity final public class PluginMetaData { @Id @ GeneratedValue private Long dbId; //persisted | |
Object comparation never matches; @Id @ GeneratedValue private Long id; public void setPrincipal | |
_PersistenceException: Type is not found on getSingleResult. Greetings. I'm new to ObjectDB. I'm using an ObjectDB local database for a Java SE standalone application and i'm having issues querying for an object of this entity: @Entity public class Estudiante{ @Id @ GeneratedValue private Integer id | |
How to delete M2M relationship? In user model class I have the following: public class User implements Serializable { @Id @ GeneratedValue (strategy = GenerationType.AUTO) private Long id; @ManyToMany(mappedBy = "attendees", cascade | |
Entity with java.util.Date column gives ClassCastException in BIRT class Patient { @Id @ GeneratedValue (strategy=GenerationType | |
Problem to use find method on an abstract Class: AbstractMethodError is thrown static class B extends A { @Id @ GeneratedValue Long id | |
@ElementCollection of type enum; @Id @ GeneratedValue Long id;   | |
@Column( name = "columnName") doesn't work I have created following entity class with custom fields @Entity public class AfwDataKey { @Id @ GeneratedValue @Column(name = "KEY_ID") private long id; private Long timestamp; @ManyToOne @Column(name = "KEY_DESCRIPTOR") private AfwKeyDescriptor keyDescriptor; @OneToMany(fetch = FetchType.LAZY | |
Null enums and IS (NOT) NULL: NullPointerException class TEntity { public enum ExampleEnum { P1, P2 } @Id @ GeneratedValue (strategy = GenerationType | |
Null returned by Persistence.createEntityManagerFactory; @Entity public class Task implements Serializable { @Id @ GeneratedValue int id; //int id = 0; private | |
query on calendar class Hello! I'm looking for help to build query on calendar class. I need to get objects where Calendar.DAY_OF_WEEK is FRIDAY or any other. My class: @Entity public class Cdr { private static final long serialVersionUID = 1L; @Id @ GeneratedValue | |
Error with org.springframework.data.jpa.domain.AbstractPersistable; { @Id @ GeneratedValue   | |
Mismatch client-server protocol prefix is annotated with: @Id @ GeneratedValue public Long getId() { return Id; } mosi0815 Ralph Moser Regarding #2 | |
Should I be able to persist a JFrame (or gui components in general)? Serializable { private static final long serialVersionUID = 1L; @Id @ GeneratedValue private long id | |
Lazy loading does not work - crud takes long; @ GeneratedValue (strategy = GenerationType.SEQUENCE, generator = "PROJECT_SEQUENCE")   | |
LifeCycle Event with Embeddable classes Hello, is there a way that lifecycle events like prepersist or preupdate are also fired for embeddable classes, not just for entities? My case looks as follows: @Entity public class Foo { @Id @ GeneratedValue private Long id; private String description; @OneToMany(cascade = CascadeType.ALL, fetch | |
Problem with distinct select, order by and equivalent alias/attribute path @ GeneratedValue (strategy = GenerationType.AUTO) private Long id | |
Performance in SELECT statement Hello, I have the following 2 entities : @Entity public class TestEntity implements LocalEntity { @Id @ GeneratedValue private Long key; private Long clientKey; private String | |
Navigation through Path to evaluate collection ProductData implements Serializable { @Id @ GeneratedValue private | |
java.sql.Timestamp.getTime() not working Player { @Id @ GeneratedValue (strategy = GenerationType.IDENTITY) public int id; @Temporal(TemporalType | |
How to avoid NULL values on Embedded entities Hi there. I'm new on this. trying to learn. I'm trying to make a value non nulleable. So, when I try to upload to the DB this field as null, it give me an error. I tried this, but it didn't work: public class Pedido { @Id @ GeneratedValue private long id;   | |
Error: Failed to write value of field X using reflection (oneToMany relation) Hi there! I have been all day trying to solve this. I have read multiple sites and documentation, but I can go through this. I have a clase named Pedido, that have a reference ManyToOne to a clase Cliente. @Entity public class Pedido { @Id @ GeneratedValue private long id; @Embedded private | |
Change Sequcene Id; @ GeneratedValue (strategy=GenerationType.IDENTITY) private Long id; } Tsu | |
Does ObjectDB support @Parent for @Embeddable reference to parent? instrumentation: @Entity class User implements Serializable { @Id @ GeneratedValue (strategy = GenerationType | |
2.7.3_03 Erroneous "Attempt to modify a primary key of a managed object" AuEntity implements Serializable { @Id @ GeneratedValue long id } it's the ONLY place in the entire | |
Immediately retrieve unique id The beginning of my "Sample" class looks like: @Entity @SequenceGenerator(name = "sampleSeqGenerator", initialValue = 1, allocationSize = 100) public class Sample implements Serializable { private static final long serialVersionUID = 1L; private String sampleName; @ GeneratedValue (strategy | |
Fields in objects not populated in query result. , Serializable { /** * */ private static final long serialVersionUID = 1L; @ GeneratedValue @Id protected long | |
How to pass a list in query for a list field of entity. I have a entity as bellow :- @Entity @Table(name = "agent") public class Agent implements Serializable { @Id @ GeneratedValue (strategy = GenerationType.AUTO) private Long Id; private List SocialMedias; public Agent() { } public Long getId() { return Id; } public List getSocialMedias() { return | |
How to apply constraints in collection attributes of entity. How to apply constraints like unique, not null ...etc in collection attribute of a entity. Example : @Entity @Table(name = "agent") public class Agent implements Serializable { @Id @ GeneratedValue (strategy = GenerationType.AUTO) private Long Id; private List PhoneNumbers; public Agent() { } public | |
Missing (null) elements in eager loaded references @ GeneratedValue (strategy = GenerationType. SEQUENCE , generator = "seq" ) private Long id | |
Failed to commit transaction: Attempt to reuse an existing primary key value (613) the database is @ GeneratedValue , and at the commit clause it throws the exception. If you could explain | |
com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null; @ GeneratedValue long id; public WebReference() {   | |
"is not null" queries not working with index.persistence.EntityManagerFactory; import javax.persistence. GeneratedValue ; import javax.persistence.Id | |
boolean field flips after schema update (in class) of another field public class Configuration { @Id @ GeneratedValue private long id; @Embedded private Application | |
Unexpected exception when execute query without enhanced entities { @Id @ GeneratedValue int uid |