ObjectDB Database Search

101-137 of 137 results

Issue with orphanRemoval and multiple EntityManagers

;   @OneToMany(cascade=CascadeType.ALL, fetch= FetchType .EAGER, orphanRemoval=true)  

Possible issue with Spring JPA and Embedded

;  @ElementCollection(fetch= FetchType .EAGER)     public List getRules() {  

Upgrade to 2.4.1_01

our code for 2.3.7_18, we had @OneToOne(cascade=CascadeType.ALL, fetch= FetchType .EAGER

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

Global way to set Lazy-loading fetch functionality for all the fields

Hi, for cascading persist, I have 3 choices: - Either locally (@OneToOne(cascade=CascadeType.PERSIST)) - Either at objectdb level ( ) - Either at JPA global level (orm.xml).   For defining fetch policy, I know the local way to do it (@ManyToOne(fetch= FetchType .LAZY)). Is there any way

Selective merge/cascade of detatched entity

I'm having an issue with my application, and I'm hoping you guys will be able to help. Please forgive typos and obvious errors, I'm having to retype from a non-internet connected network. A contrived example is: @Entity public class Salesman { private String name; @OneToMany(fetch= FetchType .EAGER

Help understanding Entity behavior with JPA

Hi Support,   We have a entity with an @Id entity which we then put into a list and store in an different entity inside a field defined as:   @OneToOne(orphanRemoval=true, cascade=CascadeType.ALL, fetch= FetchType .EAGER) private Object payload; the list that we put in the 'payload

Composite indexes

rating in scale from 1.0 to 10.0 @ElementCollection(fetch = FetchType .EAGER) List filterDescription

Bidirectional OneToMany is slow on updated items

: @OneToMany(cascade = {CascadeType.ALL}, fetch = FetchType .LAZY/*, mappedBy = "person"*/) private Set

"Failed to serialize instance" of Set problem

Hi, I'm trying to persists objects defined as follows: @Entity @Inheritance(strategy = InheritanceType.SINGLE_TABLE) public abstract class AbstractContainer { ... @OneToMany(fetch = FetchType .LAZY, mappedBy="parent") private Set abstractContainers = com.google.common.collect.Sets

com.objectdb.o.NLV cannot be cast to com.objectdb.o.RSV

= ChatAttachment.class, fetch = FetchType .EAGER) private List attachments; private boolean isSystem; private

Does aggregate function "greatest" work on entity objects?

= ChatAttachment.class, fetch = FetchType .EAGER) private List attachments; private boolean isSystem; private

OEM licencing limitation

= FetchType .EAGER, cascade = CascadeType.ALL) private Map vars = new TreeMap

Error during cascaded merge

= CascadeType.ALL, orphanRemoval = true, fetch = FetchType .EAGER)     @OrderBy

removed objects stay with null field values in the reference

; ... @OneToMany(fetch= FetchType .LAZY) public Set workflow = new HashSet (); When we remove an object

Removing an element from an @OneToMany doesn't work

Hello. I have a Parent and Child entities. // in the parent @OneToMany(mappedBy = "parent", fetch = FetchType .EAGER, cascade = CascadeType.ALL) private List children; // in the child @ManyToOne private Parent parent; Somewhere I do this: parent.getChildren().remove(0); manager.merge(parent

Adding EntityListener Throws Unexpected Internal Exception

;   @MapsId     @ManyToOne(fetch = FetchType .LAZY)    

LifeCycle Event with Embeddable classes

= FetchType .EAGER) private List barList; @Temporal(TemporalType.TIMESTAMP) private Timestamp

Failed to write the value of field using reflection (error 363) on LAZY fetch

= FetchType .LAZY, mappedBy="modell", cascade=CascadeType.ALL) private List articles = new ArrayList (); public

Retrieval by Access bug?

Dear Sirs, I have an object A, that has a OneToMany FetchType .EAGER List of objects B, that has a field with a reference to an object C. I have this code: ClassA objectA = em.find(ClassA.class, 1); for (ClassB objectB : objectA.getListB()) {     ClassC objectC = objectB

composite index not used in query

we defined a composite index for class Action: @Index(name="ssst",members={"startDate","state","subType","type"}) and an index for the OneToMany @OneToMany(fetch= FetchType .LAZY) @Index public List objectsInCharge = new ArrayList (); on running a query like select count(a) from Action a JOIN

An ArrayIndexOutOfBoundsException with nested entities and enhanced entities

{ @ManyToOne (targetEntity = DataTypeImpl.class, cascade = {CascadeType.ALL }, fetch = FetchType .LAZY

Navigation through Path to evaluate collection

long id;     @ElementCollection(fetch = FetchType .EAGER)     private

ObjectDB 2.6.9_06 (embedded): Cascading merge resulting in duplicate objects

This issue maybe related to issue #110 (http://www.objectdb.com/database/issue/110). Because that issue has been closed as "fixed", I am reporting this new issue. This is my class definition: @Entity public abstract class Person {     @OneToMany(fetch= FetchType .EAGER, cascade

Beginners questions

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

Relationships and tracking changes

= GenerationType.AUTO) private Long id; @OneToMany (fetch= FetchType .LAZY,cascade=CascadeType.ALL, mappedBy

Can't get arraylist/vector type attributes

do to keep the information? Unknown unknown Access it before closing the EntityManager or load it eagerly ( FetchType .EAGER

Find the error...JPA ENTITY HIBERNATE

.persistence. FetchType ; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType

Performance issue in a query due to internal calls visitRefs and visitKeyRefs

.class, fetch = FetchType .LAZY) private List signals = new ArrayList (); @ElementCollection private

Cast in typed query

I have the following property in my class "OtherType" with "MySuperType" (an interface) as the generic list type: @ElementCollection(fetch = FetchType .EAGER) private List types  = null; Now I can use "instanceof" within a query in order to select only elements of the specific type

query hint

={"linkedObjects.pointingTo.nodePath"}) })   the collection is defined as @OneToMany(fetch= FetchType . LAZY

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

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

Unexpected exception (Error 990) on find

String key;     @ElementCollection(fetch= FetchType .EAGER)    

Enhanced classes problem

and annotations: @OneToMany(fetch = FetchType .EAGER, mappedBy = "jobInfoId")  // relation

com.objectdb.o.InternalException: null

= FetchType .EAGER)     private List insurances = new ArrayList ();     public

NullPointerException on TreeSet load

{         @OneToMany(cascade=CascadeType.PERSIST, fetch = FetchType .EAGER)  

Enum fields are set to null and embeddable enum class does not show in explorer

(fetch = FetchType . EAGER ) @Enumerated(EnumType. STRING ) private List roles = null ; itsme Martin