Internal Website Search

101-137 of 137 results

Composite indexes

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

LEFT (OUTER) JOIN problem when mappedBy is defined

public class Invoice { @OneToMany(mappedBy = "invoice", fetch= FetchType .EAGER, orphanRemoval=true

An ArrayIndexOutOfBoundsException with nested entities and enhanced entities

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

Adding EntityListener Throws Unexpected Internal Exception

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

OEM licencing limitation

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

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

Possible issue with Spring JPA and Embedded

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

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

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

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

Object DB vs EclipseLink/TopLink: Unloaded relationships in detached entities

solutions in the ObjectDB case seem to be: 1. Use explicit FetchType .EAGER on all desired collections

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

Failing to read entities under load in multithreaded tests

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

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

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

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

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

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

Items in list are doubled, when the entity class is not enhanced

id; @OneToMany(mappedBy = "customer",fetch= FetchType .EAGER,       

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

Eager Fetch is not stable for collection or map types?

; @ElementCollection(fetch= FetchType .EAGER)     private List members = new ArrayList ();   

Relationships and tracking changes

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

Query problem

Hi, Given : @Entity(name = "Inspiration") public class Inspiration implements Serializable {     ....     @ManyToOne(fetch = FetchType .EAGER)     protected Atelier atelier;     .... } I have a query : SELECT i FROM Inspiration i WHERE i

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

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

Version 2.2.7 build 7/8 issue

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

Error 363 - Failed to read value of inverse relationship

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

query hint

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

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

Upgrade to 2.4.1_01

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

Navigation through Path to evaluate collection

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

Cannot sort descending, when ordering by caluculated float in a method

= FetchType .EAGER, orphanRemoval=true, cascade= CascadeType.ALL) private List itemList = new ArrayList

Mysterious "Attempt to persist a reference to a non managed instance" error

javax.persistence.CascadeType.*; import static javax.persistence. FetchType .*; @Entity public class

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

Enhanced classes problem

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

NullPointerException on TreeSet load

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

TYE NullPointerException

the problem. I've now added a FetchType of EAGER to the member to ensure a load takes place regardless