ObjectDB Database Search
51-100 of 106 resultsTreeSet and compareTo() issue
through a collection field in another class that uses eager fetch: @OneToMany(fetch = FetchType .EAGER ... valid: @OneToMany(fetch = FetchType .EAGER, cascade=CascadeType.PERSIST
|
|
EntityManager.refresh takes a long time
siteAuth; private DialogAction currentDialogAction; @ManyToMany(fetch = FetchType .EAGER, cascade ... .PERSIST}) private Album mainAlbum; @OneToMany(mappedBy="person", fetch = FetchType .EAGER, cascade
|
|
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
|
|
@Column( name = "columnName") doesn't work
(name = "KEY_DESCRIPTOR") private AfwKeyDescriptor keyDescriptor; @OneToMany(fetch = FetchType .LAZY ... = FetchType .LAZY, cascade = CascadeType.ALL) private AfwCodedDataBlock codedDataBlock; private int level
|
|
Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)
.persistence.Basic; import javax.persistence.Entity; import javax.persistence. FetchType ; import javax ... getSingleton() { return container; } } @ManyToOne(fetch= FetchType .LAZY) @Id private Container container
|
|
Problem witch CriteriaBuilder isMember(..)
class Container { @ElementCollection(fetch = FetchType .EAGER) List testlist1 = new LinkedList (); @ElementCollection(fetch = FetchType .EAGER)  
|
|
Problem with merging / persisitng objects with @Embeddable field
Serializable, Convertable { (...) @ElementCollection(fetch = FetchType .EAGER) List productSets; @Embeddable public class ProductSet implements Serializable { @ManyToMany(fetch = FetchType .EAGER, cascade
|
|
Adding multi part path index on non-embedable object member
{ @MapsId @ManyToOne(fetch = FetchType .LAZY) private Merchant merchant; @MapsId @ManyToOne(fetch = FetchType .LAZY) private List stores; // Setter/Getter } So I wanted to add index on Customer for merchant
|
|
PostUpdate collection null
; @OneToMany(fetch= FetchType .EAGER) private ArrayList myCollection = new ArrayList ... ; @OneToMany(fetch= FetchType .EAGER
|
|
Database Inconsistency or corruption
(cascade=javax.persistence.CascadeType.ALL, fetch = javax.persistence. FetchType .EAGER ... ; fetch=javax.persistence. FetchType .EAGER) @javax.persistence.JoinColumn
|
|
GWT RPC is throwing serialization exception when I have object db date value
you! But now I have to set fetchtype and cascadetype explicit (which is no problem), otherwise the List will alway be empty after detaching. @OneToMany(fetch = FetchType .EAGER, cascade = CascadeType
|
|
Trouble bug on explorer
allowIdWaitMe; @OneToOne(fetch = FetchType .EAGER) private Language mainLanguage; @OneToMany(fetch = FetchType .LAZY) private List languages; public final int getGid() { return gid; } public final void
|
|
Is there a way to set EAGER fetch on all "ToMany" collection relationships
Given that the default seems to be FetchType .LAZY for all collections @OneToMany and @ManyToMany. Such as a configuration option. Instead of having to explicitly set fetch in annotation code in every relationship. webel Dr Darren Kelly No. There is no such configuration option, since having EAGER
|
|
LifeCycle Event with Embeddable classes
= FetchType .EAGER) private List barList; @Temporal(TemporalType.TIMESTAMP) private Timestamp
|
|
Double persist of Entity field with Cascade.ALL
bookTitle; @OneToMany(cascade= CascadeType.ALL, fetch= FetchType .EAGER) private List chapters; The Chapter
|
|
Speeding up reporting queries with size() on list
(targetEntity = Product.class, fetch = FetchType .LAZY) private List products; There is only 680
|
|
"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
|
|
find() cost unreasonable time!
="parent",fetch= FetchType .EAGER) protected List Sons; function of checking: private static void
|
|
Migration problem
://gauthier-cassany.com/posts/spring-boot-hibernate-search-conditional-indexing @Basic(fetch = FetchType
|
|
Join query problem with new statetment
;(...) @ManyToMany(targetEntity = Product.class, fetch = FetchType .LAZY)  
|
|
TemporalType injection with Calendar using JPA
.persistence. FetchType .EAGER) public List getPoints() { return points; } public void setPoints
|
|
OneToMany and cascade delete problem
= Offer.class, mappedBy = "product", fetch = FetchType .LAZY, cascade = CascadeType.ALL) private Set offers
|
|
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
|
|
New to Product & Having An Issue
() { return name; } public void setName(String name) { this.name = name; } @OneToMany(fetch= FetchType
|
|
Beginners questions
") @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @OneToMany (fetch= FetchType .LAZY,cascade
|
|
Bidirectional OneToMany is slow on updated items
: @OneToMany(cascade = {CascadeType.ALL}, fetch = FetchType .LAZY/*, mappedBy = "person"*/) private Set
|
|
Does aggregate function "greatest" work on entity objects?
= ChatAttachment.class, fetch = FetchType .EAGER) private List attachments; private boolean isSystem; private
|
|
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
|
|
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
|
|
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
|
|
updating one to many sometimes fails
we did setup automated tests for our system and it seams that in around 1 of 100 cases the update of a one to many collection is not working. Definition: @OneToMany(fetch= FetchType .LAZY) @Index public List childNodes = new ArrayList (); change of the childNodes within a transaction (a newly
|
|
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
|
|
After using the enhancer, Lazy loaded collections are no longer loading. They are set as null
, CascadeType.PERSIST}, mappedBy="account", fetch = FetchType .LAZY) @JoinColumn(name = "project_id", unique=true ... ; mappedBy="account", fetch = FetchType .LAZY)  
|
|
Eager load Map
I'm having an issue eager loading a nested map. I've attached @ManyToMany(fetch= FetchType .EAGER) attributes to no avail. If the map is viewed in the debugger or force iterated in the code it loads ok. The attached code attempts to replicate the scenario. Its not an exact match but is the best I
|
|
Eager Fetch of Map with Entities as Keys
id = 1; @OneToMany(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
|
|
[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
|
|
com.objectdb.o.InternalException: null
= FetchType .EAGER) private List insurances = new ArrayList (); public
|
|
Unexpected exception (Error 990) on find
String key; @ElementCollection(fetch= FetchType .EAGER)  
|
|
Enhanced classes problem
and annotations: @OneToMany(fetch = FetchType .EAGER, mappedBy = "jobInfoId") // relation
|