ObjectDB Database Search

101-150 of 197 results

Some details about db behavior

will refer to it. Please explain what is happening there? I know about cascade option, and if I use ... class) after persisting a B instance that references an A instance (with cascading enabled

Merge with Parent/Child entities not possible

, cascade = CascadeType.ALL, mappedBy = "parent", orphanRemoval = true)   @MapKey(name = "childName ... long id;   @ManyToOne(fetch = FetchType.LAZY, cascade = { CascadeType.PERSIST, CascadeType.MERGE

Is it possible to remove parent/child entities without refresh?

;   @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "parent ... , cascade = { CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REFRESH })   private ParentEntity

ObjectDB Explorer don't show ManyToOne relations

;@ManyToOne (targetEntity = ModelElementImpl.class, cascade = {CascadeType.REFRESH}) private ModelElement ... ;@ManyToOne (targetEntity = ModelElementImpl.class, cascade = {CascadeType.REFRESH}) private

Lazy loading does not work - crud takes long

; @OneToMany( cascade = CascadeType.ALL, orphanRemoval = true, mappedBy="project",fetch = FetchType.LAZY)     private List datapoint;         @OneToMany( cascade

TreeSet and compareTo() issue

Martin Thank you for the test case. Please note that cascading persist should be added to make the test valid:     @OneToMany(fetch = FetchType.EAGER, cascade =CascadeType.PERSIST

significant performance decrease

) public List precessors = new ArrayList (); @OneToMany(fetch=FetchType.LAZY, cascade =CascadeType.REMOVE ... = new ArrayList (); @OneToMany(fetch=FetchType.LAZY, cascade =CascadeType.REMOVE) public List

Foreign key constraint issue

; @ManyToOne(optional = false, cascade = {})     @JoinColumn(name="PARENT_ID", nullable = false ... ( cascade = {CascadeType.MERGE, CascadeType.REMOVE}, mappedBy = "parent", orphanRemoval = true)  

Entity not removed 100%

When I remove an object from a class it get's removed but the other objects that had that object as an attribute still keep it although I am using @OneToMany( cascade =CascadeType ... unknown It is the application responsibility to clear references to removed objects. Cascading removal

Merge on detached entities

was not yet loaded. The cascade type for this reference was set to ALL. Then we tried to merge ... . What settings on annotations are needed regarding fetch types and cascades . Kind regards btc_es BTC

Is there any restriction when using fetch=FetchType.LAZY ?

am using in object declaration @OneToMany(fetch=FetchType.EAGER, cascade = CascadeType.ALL) private ... @OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL) private LinkedList referencedObj

EM.find() is suddenly slower

.FIELD) @Column (name = "uid") private String uid; @OneToOne (fetch = FetchType.EAGER, cascade ... = FetchType.EAGER, cascade = {CascadeType.REFRESH, CascadeType.DETACH }) private HashMap mappingMap = new

Why are my Map entries not stored?

, cascade =CascadeType.ALL, mappedBy = "ticket",     orphanRemoval=true ... = FetchType.EAGER, cascade =CascadeType.ALL, orphanRemoval=true) @MapKey(name="state") @MapKeyEnumerated

ManyToMany Set is null

@GeneratedValue     private long id;     @ManyToMany(fetch = FetchType. EAGER , cascade ... = FetchType. EAGER , cascade ={CascadeType. DETACH ,CascadeType. MERGE ,CascadeType. REFRESH }, mappedBy

Not releasing locked MST object

:176) at com.objectdb.o.TVS.e(TVS.java:170) at com.objectdb.o.TVS. cascade (TVS.java:157) at com ... .objectdb.o.TVS. cascade (TVS.java:157)     at com.objectdb.o.STA.C(STA.java:539)   

Does ObjectDB support lazy loading?

A { @Id @GeneratedValue Long id; @OneToMany(fetch=FetchType.LAZY, cascade =CascadeType.ALL) List list

Problem on JPA Merge Entity.

Hello, I have a problem with the EntityManager.merge() function. I set a property value of an entity (statement) with an other entity (newSingleConstraint). newSingleValue is already persisted. I do this myself (no use of cascade because sometimes the newSingleValue is already in database

GWT RPC is throwing serialization exception when I have object db date value

will alway be empty after detaching. @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType

Error 363 - Failed to read value of inverse relationship

(); private String text; @OneToMany(/*fetch=FetchType.LAZY, cascade =CascadeType.ALL, */mappedBy

Different behavior with persist() and queried instances?

Hi, We have a simple class that by itself contains (among others) a property pointing to a collection: class Bla {     @OneToMany( cascade = CascadeType.ALL)     private List metaAttributes = new ArrayList (); } Now we do a simple em.persist(BlaInstance

how to query by properties of onetomany relations? (Error 990)

class Foo {         @OneToMany( cascade =CascadeType.PERSIST)  

TemporalType injection with Calendar using JPA

(TimePeriod id) { this.id = id; }   @OneToMany( cascade =javax.persistence.CascadeType.ALL,fetch=javax

On initialisation of lists: impact on migration from EclipseLink to ObjectDB

, will be done by EntityManager.persist() @OneToMany( cascade =CascadeType.ALL) public List getBlocks

Removing an entity throws exception

; @OneToOne( cascade =CascadeType.ALL, fetch=FetchType.EAGER,         

OrphanRemoval not working?

Dear all, I have entities Invoice and InvoiceItem, their relation is defined: public class Invoice implements Serializable { ... @OneToMany(mappedBy="invoice", fetch=FetchType.EAGER,              orphanRemoval=true, cascade =CascadeType

LEFT (OUTER) JOIN problem when mappedBy is defined

, cascade = CascadeType.ALL) private List itemList = new ArrayList (); private String name; public

Version 2.2.7 build 7/8 issue

; @Basic(optional=false) private String name; @OneToOne( cascade = CascadeType.ALL, fetch= FetchType.EAGER

Failed to generate dynamic type objectdb.java.util.ArrayList

.objectdb.o.TVS.j(TVS.java:169) at com.objectdb.o.TVS. cascade (TVS.java:146) at com.objectdb.o.STA.Q(STA

Failing to read entities under load in multithreaded tests

= 6249921651146397564L; @OneToOne( cascade =CascadeType.REFRESH, fetch=FetchType.EAGER) private TestEntity

Attempt to refresh a non managed entity object (error 635)

David Moshal This error message indicates invoking refresh (explicitly or implicitly by cascading

Upgrade to 2.4.1_02

. cascade (TVS.java:156) at com.objectdb.o.TVS.g(TVS.java:105) at com.objectdb.o.TVS.g(TVS.java:93

Upgrade to 2.4.1_03

.java:160) at com.objectdb.o.TVS.j(TVS.java:169) at com.objectdb.o.TVS. cascade (TVS.java:156) at com

Detaching objects after JOIN FETCH

Hi, I have a question about detaching objects after issuing query with JOIN FETCH. Let's say I have two classes: public class A { @ManyToOne B bClass } public class B { @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) List aClasses; } Now, I want to fetch all B classes

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

; } @Override public void setId(Long id) { this.id = id; } @OneToMany( cascade ={CascadeType.MERGE ... ; @OneToMany( cascade ={CascadeType.MERGE, CascadeType.PERSIST},        

NullpointerException when execute a commit

.objectdb.o.TVS. cascade (TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com.objectdb.o.STM.E(STM ... :169) at com.objectdb.o.TVS. cascade (TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com

java.lang.NullPointerException during access a field, only if the classes enhanced

.TVS.j(TVS.java:169) at com.objectdb.o.TVS. cascade (TVS.java:156) at com.objectdb.o.STA.Q(STA.java ... . cascade (TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com.objectdb.o.STM.E(STM.java:408

Internal exception

.objectdb.o.TVS. cascade (TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com.objectdb.o.STM.E(STM ... trace indicates a failure to cascade persist operation from unknown reason during that flush. Any

Best practise loading big data

; @OneToMany ( cascade = CascadeType . ALL , targetEntity = MyStepBlock . class , fetch = FetchType ... ( cascade = CascadeType . ALL , targetEntity = MyStep . class , fetch = FetchType . LAZY ) ArrayList steps

NullPointerException on TreeSet load

    public static class MyEntity {         @OneToMany( cascade =CascadeType ... {         @OneToMany( cascade =CascadeType.PERSIST, fetch = FetchType.EAGER)  

ObjectDB 2.0.0

/ version / inverse (mapped by) fields. Fixed Explorer bug in closing database files. Fixed cascading

ObjectDB 2.2.4

bugs in using flush. Fixed bugs in cascading merge. Fixed a multithreading deadlock bug . Fixed a bug

[ObjectDB 2.2.5_02] Unexpected exception (Error 990) com.objectdb.o.InternalException: java.lang.NullPointerException: null

; } @OneToMany( cascade =javax.persistence.CascadeType.ALL,fetch=javax.persistence.FetchType.EAGER

Navigation through lazy loading from Detached Objects

;           @OneToMany( cascade =CascadeType.PERSIST)  

[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961)

) at com.objectdb.o.TVS.j(TVS.java:169) at com.objectdb.o.TVS. cascade (TVS.java:156) at com.objectdb.o

NullPointer running multiple client against server

.objectdb.o.TVS. cascade (TVS.java:146) at com.objectdb.o.STA.Q(STA.java:476) at com.objectdb.o.STM.D(STM

ClassCastException thrown when running count query

Query. Then i realized that the cascade option in the entity class is ignored when doing DELETE. I

ObjectDB 2.3.3

with cascading persist after updating the database and before commit (issue #544 ). Fixed

ArrayIndexOutOfBoundsException on flush

(orphanRemoval=true, cascade =CascadeType.ALL) private Map _nodes; The TaskNode contains a further Entity

ObjectDB 2.4.0

on mapped by collections). Fixed object duplication on cascading merge ( issue  #595 ). Fixed

ObjectDB 2.4.2

automatic cascading through embedded objects. Fixed a bug in clearing persistent properties of primitive