Internal Website Search

101-136 of 136 results

An ArrayIndexOutOfBoundsException with nested entities and enhanced entities

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

OEM licencing limitation

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

Unexpeted internal exception

.class, mappedBy = "paises", cascade = CascadeType .ALL) private ListProperty listaCiudades = new

Problem with merging / persisitng objects with @Embeddable field

= CascadeType .ALL) List productDemands; @Entity public class ProductDemand extends BaseEntity implements

@OneToOne query issue with OR and IS NULL

= CascadeType .ALL)         private B another } class B {   

Error during cascaded merge

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

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

(cascade = CascadeType .ALL)     @SuppressWarnings("unused")     private

List always null

; @OneToMany(targetEntity = Noticia.class, mappedBy = "categorias", cascade = CascadeType .PERSIST

Failing to read entities under load in multithreaded tests

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

PostUpdate collection null

, cascade= CascadeType .PERSIST)         List myCollection = new

Repair broken references in entities

Hello, it is possible to recover an entity that has been removed automatically by CascadeType .Remove. After cascade remove the removed entity will be persisted with the identical primary key. Are all broken references in other entities on this removed/persisted entity repaired again? best regards

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

Removing an entity throws exception

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

mappedBy problem

it. You will have to add cascade= CascadeType .PERSIST to the mapped by field, unless you have global

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

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

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

;         cascade= CascadeType .ALL,orphanRemoval=true) List

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

Extra uninitialised entities spawned on merge()

;    cascade = CascadeType .ALL         )   

Memory leak while merging parent with No Cascade annotation with children

;2.5.5_05 ) import java.util.ArrayList; import java.util.List; import javax.persistence. CascadeType

Relationships and tracking changes

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

Cascade type annotaion on an embeddable type

addition, does CascadeType affects embeddable objects? Yotam Yotam Boaz No need to specify the Embedded

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

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

Storing a tree of data (depth=3)

; /** real name of person in life. */ @NonNull @ManyToOne(cascade = CascadeType .MERGE) private Performer

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

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

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

= CascadeType .ALL)     private List addresses;     public

Version 2.2.7 build 7/8 issue

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

How to move @Embedable collection to a dedicated entity class?

; @OneToMany(orphanRemoval = true, cascade = CascadeType .ALL) List children; } @Embeddable class Child{ @Id

Error 363 - Failed to read value of inverse relationship

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

Find the error...JPA ENTITY HIBERNATE

. CascadeType ; import javax.persistence.Column; import javax.persistence.Entity; import javax

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

; @Basic private int signalIndex = 0; @OneToMany (cascade = CascadeType .ALL, targetEntity = TCSignal

Upgrade to 2.4.1_01

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

Selective merge/cascade of detatched entity

, cascade= CascadeType .All) private Map companyTargets; } @Entity public class Company { private

Issue with cascade delete & add/remove

(cascade = CascadeType .ALL, orphanRemoval = true)         private List

Weird issue with variable naming

.persistence. CascadeType ; import javax.persistence.Embeddable; import javax.persistence.Entity; import