ObjectDB Database Search
51-100 of 137 resultsAnnotate a Map field with @ElementCollection or @Basic;ElementCollection , EAGER for Basic ). You may try using an @ElementCollection(fetch= FetchType .EAGER) and see if it is fast as @Basic support Support I tested it already with @ElementCollection(fetch= FetchType ... = FetchType .EAGER) , which may be more appropriate for maps that contain external relationships. support Support | |
Multi threading on DMOs by lazy loading It is possible to use lazy loading on fields of attached entities by several threads? Example: class EntityZ { @OneToOne(fetch = FetchType .LAZY) EntityX fieldX; @OneToOne(fetch = FetchType .LAZY) EntityY fieldY; @ElementCollection (fetch = FetchType .LAZY) List list; } We want to load the entity | |
Why are my Map entries not stored? private long id; @OneToMany(fetch = FetchType .EAGER ... ;@ManyToOne(fetch = FetchType .EAGER) private Ticket ticket = null;   ... = FetchType .EAGER, cascade=CascadeType.ALL, orphanRemoval=true) @MapKey(name="state") @MapKeyEnumerated | |
Does ObjectDB support lazy loading? to @OneToMany(fetch= FetchType .EAGER), the properties can be read. It seems to me that ObjectDB doesn't ... A { @Id @GeneratedValue Long id; @OneToMany(fetch= FetchType .LAZY, cascade=CascadeType.ALL) List list | |
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 | |
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 | |
How to query for list of lists ?") public class Inspiration implements Serializable { (...) @ElementCollection(fetch = FetchType ... ") @ElementCollection(fetch = FetchType .EAGER) private List reviewSnippets; ... Finally | |
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 | |
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 | |
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 | |
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 | |
List of Enum Values in an entity LAZY to EAGER : private @OneToMany(fetch= FetchType .EAGER) List flags; According ... make a difference for ObjectDB, but to remove this error / warning try: private @Basic(fetch= FetchType .EAGER) List flags; support Support | |
@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 | |
PostUpdate collection null; @OneToMany(fetch= FetchType .EAGER) private ArrayList myCollection = new ArrayList ... ; @OneToMany(fetch= FetchType .EAGER | |
Weird behaviour with enhanced classes and embedded entities.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence. FetchType ; import javax ... ; int id; @OneToMany(cascade = CascadeType.ALL, fetch = FetchType | |
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 | |
Lazy loading does not work - crud takes long; @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, mappedBy="project",fetch = FetchType .LAZY)   ... = CascadeType.ALL, orphanRemoval = true, mappedBy="project",fetch = FetchType .LAZY)   | |
Problem witch CriteriaBuilder isMember(..) class Container { @ElementCollection(fetch = FetchType .EAGER) List testlist1 = new LinkedList (); @ElementCollection(fetch = FetchType .EAGER)   | |
TreeSet 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 | |
Database Inconsistency or corruption(cascade=javax.persistence.CascadeType.ALL, fetch = javax.persistence. FetchType .EAGER ... ; fetch=javax.persistence. FetchType .EAGER) @javax.persistence.JoinColumn | |
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 | |
Multiple Collection Fields not update correctly v2.8.8_2 I have an entity that has 2 collection fields: @OneToMany(fetch = FetchType .EAGER) Collection position; @OneToMany(fetch = FetchType .EAGER) Collection rotation ; Now if I persist them so the values are: position | |
ManyToMany Set is null @GeneratedValue private long id; @ManyToMany(fetch = FetchType . EAGER , cascade ... = FetchType . EAGER , cascade={CascadeType. DETACH ,CascadeType. MERGE ,CascadeType. REFRESH }, mappedBy | |
New to Product & Having An Issue() { return name; } public void setName(String name) { this.name = name; } @OneToMany(fetch= FetchType | |
Error 363 - Failed to read value of inverse relationship(); private String text; @OneToMany(/*fetch= FetchType .LAZY, cascade=CascadeType.ALL, */mappedBy | |
TemporalType injection with Calendar using JPA.persistence. FetchType .EAGER) public List getPoints() { return points; } public void setPoints | |
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 | |
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 | |
Mysterious "Attempt to persist a reference to a non managed instance" error javax.persistence.CascadeType.*; import static javax.persistence. FetchType .*; @Entity public class | |
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 | |
Items in list are doubled, when the entity class is not enhanced id; @OneToMany(mappedBy = "customer",fetch= FetchType .EAGER,   | |
Cannot sort descending, when ordering by caluculated float in a method= FetchType .EAGER, orphanRemoval=true, cascade= CascadeType.ALL) private List itemList = new ArrayList | |
find() cost unreasonable time!="parent",fetch= FetchType .EAGER) protected List Sons; function of checking: private static void | |
LEFT (OUTER) JOIN problem when mappedBy is defined public class Invoice { @OneToMany(mappedBy = "invoice", fetch= FetchType .EAGER, orphanRemoval=true | |
Version 2.2.7 build 7/8 issue; @Basic(optional=false) private String name; @OneToOne(cascade= CascadeType.ALL, fetch= FetchType .EAGER | |
Join query problem with new statetment;(...) @ManyToMany(targetEntity = Product.class, fetch = FetchType .LAZY)   | |
OneToMany and cascade delete problem = Offer.class, mappedBy = "product", fetch = FetchType .LAZY, cascade = CascadeType.ALL) private Set offers | |
Eager Fetch is not stable for collection or map types?; @ElementCollection(fetch= FetchType .EAGER) private List members = new ArrayList ();   | |
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 | |
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 | |
Failing to read entities under load in multithreaded tests = 6249921651146397564L; @OneToOne(cascade=CascadeType.REFRESH, fetch= FetchType .EAGER) private TestEntity | |
ClassCastException after upgrade to 2.3.5_03, cascade=CascadeType.ALL, fetch= FetchType .EAGER) private Object payload; @OneToOne(orphanRemoval=true, cascade=CascadeType.ALL, fetch= FetchType .EAGER) private Map metadata; ... In this case the "payload | |
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)   | |
Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence. FetchType ; import ... { @OneToMany(fetch = FetchType .LAZY, cascade = CascadeType.ALL, orphanRemoval = true)   | |
spuriously objectdb objects have null references definitions are (for the null references above): ... @OneToMany(fetch= FetchType .LAZY) @Index public List actions = new ArrayList (); ... @OneToMany(fetch= FetchType .LAZY) @Index public List childNodes | |
[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 | |
TYE NullPointerException the problem. I've now added a FetchType of EAGER to the member to ensure a load takes place regardless | |
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)   |