ObjectDB Database Search
51-87 of 87 resultsList always null; @ GeneratedValue (strategy = GenerationType.AUTO) private Long id;   ... ; @ GeneratedValue (strategy = GenerationType.AUTO) private Long id;   | |
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;   | |
_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 | |
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 | |
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 | |
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 | |
problem with lazy loading - unittest project attached - please consider: a different GeneratedValue 's strategy (in ObjectDB the SEQUENCE   | |
Intermittent: "Attempt to reuse an existing primary key value" when persisting a new instance using the following annotations for the id: @Id @ GeneratedValue (strategy | |
Mismatch client-server protocol prefix is annotated with: @Id @ GeneratedValue public Long getId() { return Id; } mosi0815 Ralph Moser Regarding #2 | |
Problem with @UniqueConstraint" }) }) public static final class CI { @Id @ GeneratedValue long id; @Column (name = "NAME" , nullable = false | |
Does ObjectDB support @Parent for @Embeddable reference to parent? instrumentation: @Entity class User implements Serializable { @Id @ GeneratedValue (strategy = GenerationType | |
find() cost unreasonable time!="0") public class Nodes { @Id @ GeneratedValue (strategy=GenerationType.IDENTITY | |
Error with org.springframework.data.jpa.domain.AbstractPersistable; { @Id @ GeneratedValue   | |
Problem with distinct select, order by and equivalent alias/attribute path @ GeneratedValue (strategy = GenerationType.AUTO) private Long id | |
Missing (null) elements in eager loaded references @ GeneratedValue (strategy = GenerationType. SEQUENCE , generator = "seq" ) 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 | |
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 | |
Change Sequcene Id; @ GeneratedValue (strategy=GenerationType.IDENTITY) private Long id; } Tsu | |
Database size is much larger than expected (x2).persistence.Entity; import javax.persistence. GeneratedValue ; import javax.persistence.GenerationType | |
Bulk Delete and Update - best practice? public static class CacheData { @ GeneratedValue @Id long id; @Index int hash; String data; public long | |
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 | |
@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 returned by Persistence.createEntityManagerFactory; @Entity public class Task implements Serializable { @Id @ GeneratedValue int id; //int id = 0; private | |
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 | |
LAZY @ManyToOne field functions as EAGER; @ GeneratedValue Long id;   | |
Possible issue for default id generator and 36: @ GeneratedValue (strategy=GenerationType.SEQUENCE)//, generator="seq") @Id @SequenceGenerator | |
java.sql.Timestamp.getTime() not working Player { @Id @ GeneratedValue (strategy = GenerationType.IDENTITY) public int id; @Temporal(TemporalType | |
Fields in objects not populated in query result. , Serializable { /** * */ private static final long serialVersionUID = 1L; @ GeneratedValue @Id protected long | |
Cascading merge() leading to "Attempt to persist a reference to a non managed instance" error static final class Child { @Id @ GeneratedValue   | |
Failing to read entities under load in multithreaded tests; @Id @ GeneratedValue (strategy=GenerationType.TABLE, generator | |
@ElementCollection of type enum; @Id @ GeneratedValue Long id;   | |
"is not null" queries not working with index.persistence.EntityManagerFactory; import javax.persistence. GeneratedValue ; import javax.persistence.Id | |
Unexpected exception when execute query without enhanced entities { @Id @ GeneratedValue int uid | |
Unexpected exception (Error 990) - Merge with no Transaction; @ GeneratedValue Long id;   | |
Explorer bug ? Objects seem to be missing from database in Class view, but are present as references that under @ID @ GeneratedValue AUTO strategy with ObjectDB (unlike with EclipseLink+MySQL or EclipseLink | |
NPE when doing a find() I added a simple User entity during Tomcat startup: class User { @Id @ GeneratedValue private long id; @Basic(optional = false) private String firstName; private String middleName; @Basic(optional = false) private String lastName; } Everything works fine until I restart the server, which does | |
boolean field flips after schema update (in class) of another field public class Configuration { @Id @ GeneratedValue private long id; @Embedded private Application |