Internal Website Search

101-150 of 196 results

Problem with @Basic(fetch = FetchType.LAZY)

with @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL)     private LargeString description;     @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL)   

LAZY @ManyToOne field functions as EAGER

; @ManyToOne(fetch=FetchType.LAZY, cascade = CascadeType.ALL)         C ... ; @ManyToOne(fetch=FetchType.EAGER, cascade = CascadeType.ALL)         C

null pointer exception in objectdb-2.4.4_06

.objectdb.o.TVS. cascade (TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com.objectdb.o.STM.E(STM.java ... to persist (indirectly via cascading ) an object with a null primary key. Build 2.4.4_17 may provide a better error message in this case. support Support

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

Object explorer cannot open odb file. ObjectDB many-to-many relationship

{     @Id @ManyToOne( cascade = CascadeType.ALL, optional = false)     private User user;         @Id @ManyToOne( cascade = CascadeType

ObjectDB Explorer don't show ManyToOne relations

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

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

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

Foreign key constraint issue

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

Lazy loading does not work - crud takes long

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

OEM enhancing

Hello, I have question regarding OEM licence enhancement. @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL) private SomeClass[] props; @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL) private Map vars = new TreeMap (); Are these classes(SomeClass, SomeClass2), when not

Extra uninitialised entities spawned on merge()

;    cascade = CascadeType.ALL         )    ... . The merge() operation can be optionally cascaded in these cases to prevent an exception from occurring

Upgrade to 2.4.1_01

our code for 2.3.7_18, we had @OneToOne( cascade =CascadeType.ALL, fetch=FetchType.EAGER ... .o.CLT.visitRefs(CLT.java:160) at com.objectdb.o.TVS.j(TVS.java:169) at com.objectdb.o.TVS. cascade

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

{         @OneToMany( cascade =CascadeType.PERSIST)    ... = FetchType.EAGER, orphanRemoval=true, cascade = CascadeType.ALL) private List itemList = new ArrayList

_PersistenceException: Type is not found on getSingleResult.

= "estudiante", cascade = CascadeType.ALL, orphanRemoval = true)     private 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

LifeCycle Event with Embeddable classes

Hello, is there a way that lifecycle events like prepersist or preupdate are also fired for embeddable classes, not just for entities? My case looks as follows: @Entity public class Foo { @Id @GeneratedValue private Long id; private String description; @OneToMany( cascade = CascadeType.ALL, fetch

Object belongs to another EntityManager - ERROR

(TVS.java:169) 10:29:15,110 ERROR [stderr] (http--10.23.3.98-8081-5) at com.objectdb.o.TVS. cascade

General Performance Issues Illustrated with a Specific Method

( cascade = CascadeType.ALL,fetch = FetchType.EAGER) private Person person; @Index private String phn

Query over the keySet of a map field with collection parameter

; } @OneToMany ( cascade = CascadeType.ALL) public Map map = new HashMap (); } @Entity public static class

Soft Reference Object Cache Recommendation

"ENT" that is a strong reference to that SoftReference.  Under "i", I see cascading ENT and ENT

TemporalType injection with Calendar using JPA

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

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

Does ObjectDB support lazy loading?

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

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

Performance issue in a query due to compareTo calls

) @ElementCollection private Map values = new HashMap (); @OneToOne (fetch = FetchType.LAZY, cascade

Beginners questions

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

Broken @ManyToOne reference

Hi, I have objects of type A belonging to objects of type B, defined as follows: @MappedSuperclass public abstract class A { @Id @ManyToOne(fetch = FetchType.EAGER, cascade =CascadeType.ALL, optional=false) private B b; @Id @Column(length = 36) private String stringId; } @MappedSuperclass public

Bidirectional OneToMany is slow on updated items

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

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

LEFT (OUTER) JOIN problem when mappedBy is defined

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

An ArrayIndexOutOfBoundsException with nested entities and enhanced entities

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

Mapped By Fetch is very Slow

= null;   @OneToOne(targetEntity = MyEntityChild.class, cascade = CascadeType.ALL,mappedBy

Annotate a Map field with @ElementCollection or @Basic

and therefore excluded (as optimisation) from automatic cascading . You can also try @OneToMany(fetch

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

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

ArrayList (); @OneToMany(mappedBy = "owner", cascade = CascadeType.ALL) public List getOwnedElements ... is to set the fetch type to EAGER: @OneToMany(mappedBy = "owner", cascade = CascadeType.ALL, fetch=FetchType

NullPointerException on TreeSet load

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

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

Unexpected Exception during commit

(TVS.java:169) at com.objectdb.o.TVS. cascade (TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476 ... , during commit an attempt to cascade persist through an inverse (mapped by) collection field fails

ArrayIndexOutOfBoundsException on flush

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

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

{   @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, orphanRemoval = true)  

[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

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.4.5

global cascade persist in an ORM file. Fixed a NullPointerException during query execution ( issue

[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

ObjectDB 2.6.5

Added optional (experimental) support of using clients with different object model versions. Changed references to new flushed objects from ObjectDB to weak references. Cancelled an exception on cascading removal of an already removed object. Renamed internal Enhancer hidden methods to non

Navigation through lazy loading from Detached Objects

;           @OneToMany( cascade =CascadeType.PERSIST)  

ObjectDB 2.6.4

Added memory only database mode. Added an option to cascade detachment to embedded objects . Added an option to disable reuse of database page objects . Improved release of query resources. Improved memory management in multi flush transactions. Extended detachment of embedded objects

ObjectDB 2.6.0

on cascading persistence through a mapped by collection ( issue #1563 ). Fixed a bug in using enhanced