ObjectDB Database Search

51-100 of 137 results

Double persist of Entity field with Cascade.ALL

follows: @Id @ GeneratedValue (strategy = GenerationType.AUTO) private Long id; private String ... fields are as follows: @Id @ GeneratedValue (strategy = GenerationType.AUTO) private Long id; private

multiple LEFT JOINs do not work as expected

; @ GeneratedValue @Id private long id;         Node parent;    ... , depth, nodeId+"1"); } return node; } @Entity public static final class Node { @ GeneratedValue @Id

Primary key generation problem after changing entity package

@SequenceGenerator(name = "SEQ_BOARD", allocationSize = 5, initialValue = 1) @ GeneratedValue (generator = "SEQ ... ;     @ GeneratedValue (generator = "SEQ_BOARD", strategy = GenerationType.SEQUENCE

failure to enforce NOT NULL for java.lang.String

: @Entity public class Request { public Request() { } @Id @ GeneratedValue (strategy=GenerationType ... @ GeneratedValue (strategy=GenerationType.IDENTITY)         private

Trouble bug on explorer

@ GeneratedValue (strategy=GenerationType.SEQUENCE, generator="seq") private int gid; @Index private int id ... : @Entity public class Language implements Serializable {     @Id @ GeneratedValue // ID

openejb jpa jaas module

; @ GeneratedValue (strategy = GenerationType.SEQUENCE , generator = "gen") @Id private int principalId; public ... ") }) public class UserInfo implements Serializable { @ GeneratedValue (strategy = GenerationType.AUTO

Attempt to execute a query using a closed EntityManager

. id is a long field in Client, so it should be there after Client is set. Id has @Id @ GeneratedValue ... () should just return the "long" field which is @Id @ GeneratedValue (strategy = GenerationType.IDENTITY

List always null

; @ GeneratedValue (strategy = GenerationType.AUTO)     private Long id;     ... ; @ GeneratedValue (strategy = GenerationType.AUTO)     private Long id;    

Field in Generic Class not persisted?

; import javax.persistence. GeneratedValue ; import javax.persistence.Id; import javax.persistence ... ; @Entity public class OBJ6 extends ABS {      @Id @ GeneratedValue long id;  

@Unique member combination not working

;  @ GeneratedValue     private Integer id;     private String ... {         @Id @ GeneratedValue private Integer id;    

EntityManager refresh problem

.persistence.Entity; import javax.persistence. GeneratedValue ; import javax.persistence.Id; @Entity public class SimpleEntity {     @Id @ GeneratedValue private Long primaryKey;    

Multi part paths in a composite index must have the same length

; private static final long serialVersionUID = 998L;     @Id @ GeneratedValue long id ... ; public static class OBN {         @Id @ GeneratedValue long id

@OneToOne query issue with OR and IS NULL

Hello, I'm struggeling to get a query run right. I have 2 entities (simplified) class A {     @Id     @ GeneratedValue     private Long key ... ;  @Id     @ GeneratedValue     private Long key;   

Date field Index is corrupted due to time change

.persistence.EntityManagerFactory; import javax.persistence. GeneratedValue ; import javax.persistence ... ;     @ GeneratedValue (strategy=GenerationType.SEQUENCE, generator="DateTime_sequence

Wrong data stored in time only fields

.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence. GeneratedValue ... ;   @Id         @ GeneratedValue (strategy=GenerationType

Unable to persist fields in subclass

.AccessType; import javax.persistence.Entity; import javax.persistence. GeneratedValue ; import javax ... extends SimpleAbstractPersonTest { /** * */ @Id @ GeneratedValue private long id; private int

Beginners questions

") @ GeneratedValue (strategy = GenerationType.AUTO) private Long id; @OneToMany (fetch=FetchType.LAZY,cascade ... ; @Id @Column(name = "ID") @ GeneratedValue (strategy = GenerationType.AUTO) private Long id

Relationships and tracking changes

static final long serialVersionUID = 1L; @Id @Column(name = "ID") @ GeneratedValue (strategy ... ") @ GeneratedValue (strategy = GenerationType.AUTO) private Long id; @ManyToOne @Column(name = "VERLAG

Foreign key constraint issue

; @Id     @ GeneratedValue     private long id;     ...     @ GeneratedValue     private long id;     @OneToMany

Problem with entities detection

; import javax.persistence. GeneratedValue ; import javax.persistence.GenerationType; import javax ... ; @Id @ GeneratedValue (strategy = GenerationType.IDENTITY) @Basic(optional = false) @Column(name = "id

EntityManager getMetamodel() causes crash

. GeneratedValue ; import javax.persistence.Id; /** * MyEntity */ @Entity public class MyEntity implements Serializable { private static final long serialVersionUID = 1L; @Id @ GeneratedValue private long

Inserted entities with strings as keys and indices needs more and more ram memory in comparing to primitive integers as keys and indices

@ GeneratedValue primary keys are sequential. So when you persist multiple new objects their primary ... primary keys. Automatic @ GeneratedValue primary keys are sequential. So when you persist multiple new

Error occured during initialization of boot layer

. GeneratedValue ; import javax.persistence.Id; @Entity public class RequirementDBEntity implements Serializable { /** * */ private static final long serialVersionUID = 5019171545896480392L; @Id @ GeneratedValue

Query only works correctly when debug printing results

@ GeneratedValue private long id; private String reqLevelName = "DEF"; @OneToMany(mappedBy ... @ GeneratedValue private long id; @ManyToOne private RequirementLevelEntity wrappingReqLevelEntity

Why are my Map entries not stored?

Why are my values of the map "states" not stored in the database? It seems the 'State' is stored, but not the 'Authority'? @Entity public class Ticket {     @Id @ GeneratedValue ... public class Authority {     @Id @ GeneratedValue     private

ManyToMany Set is null

@ GeneratedValue     private long id;     @ManyToMany(fetch = FetchType. EAGER , cascade ... {     @Id @ GeneratedValue     private long id;     @ManyToMany(fetch

Attempt to store an instance of a non persistable type

.EnumType; import javax.persistence.Enumerated; import javax.persistence. GeneratedValue ; import javax ... @ GeneratedValue @JsonIgnore private long id; @JsonProperty private String uuid = null; @JsonProperty private

Speeding up the creation of Log entity objects related to other objects

{ @Id @ GeneratedValue private long id; @OneToMany(fetch = FetchType.EAGER, cascade={CascadeType ... public class Log { @Id @ GeneratedValue private long id; private LocalDateTime dateTime = null

Problem with @UniqueConstraint

" }) }) public static final class CI { @Id @ GeneratedValue long id; @Column (name = "NAME" , nullable = false

How to create a Unique constraint?

Hi, I'm trying to create a unique constraint. Here is a simple example: @Entity public class Account { @Id @ GeneratedValue private long id; @Index(unique="true") private String name; } The code runs and my Account objects are persisted. But no exception is thrown if name is the same. What do I

c.o.jpa.type.EntityTypeImpl.getIdType() returns null

; @Id     @ GeneratedValue     private Long id; persistence

problem with lazy loading - unittest project attached

- please consider: a different GeneratedValue 's strategy  (in ObjectDB the SEQUENCE  

Removing an entity throws exception

serialVersionUID = 1L; @Id @ GeneratedValue private Long id; private String name; private String surname

find() cost unreasonable time!

="0") public class Nodes { @Id     @ GeneratedValue (strategy=GenerationType.IDENTITY

Intermittent: "Attempt to reuse an existing primary key value" when persisting a new instance

using the following annotations for the id:   @Id     @ GeneratedValue (strategy

Database size is much larger than expected (x2)

.persistence.Entity; import javax.persistence. GeneratedValue ; import javax.persistence.GenerationType

Newbie : How to return the auto-generated ID

Hello, I am new to this community, as well as JPA and ObjectDB. I want to read the auto-generated ID when I persist a new entity (with @Id @ GeneratedValue annotations applied). I am following the following link : http://www.objectdb.com/tutorial/jpa/eclipse/web/entity Thanks. zombie

How to query for list of lists ?

{ private static final long serialVersionUID = 1L; @Id @ GeneratedValue (strategy = GenerationType.IDENTITY

Bulk Delete and Update - best practice?

public static class CacheData { @ GeneratedValue @Id long id; @Index int hash; String data; public long

Cascading merge() leading to "Attempt to persist a reference to a non managed instance" error

static final class Child {     @Id     @ GeneratedValue    

LAZY @ManyToOne field functions as EAGER

;  @ GeneratedValue         Long id;     

Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

; @Id         @ GeneratedValue       

Failing to read entities under load in multithreaded tests

;   @Id     @ GeneratedValue (strategy=GenerationType.TABLE, generator

Possible issue for default id generator

and 36: @ GeneratedValue (strategy=GenerationType.SEQUENCE)//, generator="seq") @Id @SequenceGenerator

Possible issue with String fields

@ GeneratedValue private long id; String company_pkey; String external_booking_ref; @Temporal(javax

JPQL support for mapped by (inverse) collections

;  @Id @ GeneratedValue long id;              ... ; static class B {         @Id @ GeneratedValue long id;   

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

extends AbstractEntity implements IAbstractEntity { @Id @Column(name = "account_id") @ GeneratedValue ... { @Id @Column(name = "project_id") @ GeneratedValue (strategy= GenerationType.TABLE) protected Long id

Unexpected exception (Error 990) - Merge with no Transaction

;   @ GeneratedValue         Long id;  

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

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