ObjectDB Database Search

151-200 of 200 results

"Unexpected query expression" using CriteriaQuery FetchParent Interface

Using the fetch over Root attribute, the exception is: com.objectdb.o._PersistenceException: Unexpected query expression end (non keyword identifier is expected)] with root cause com.objectdb.o ... .class);   root. fetch ("PersonData"); //@OneToOne relationship   criteriaQuery.select(root

Is it possible to remove parent/child entities without refresh?

;   @OneToMany( fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "parent ... ; @Id   @GeneratedValue   private long id;   @ManyToOne( fetch = FetchType.LAZY

Merge with Parent/Child entities not possible

{   @Id   @GeneratedValue   private long id;   @OneToMany( fetch = FetchType.LAZY ... long id;   @ManyToOne( fetch = FetchType.LAZY, cascade = { CascadeType.PERSIST, CascadeType.MERGE

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

@Column( name = "columnName") doesn't work

(name = "KEY_DESCRIPTOR") private AfwKeyDescriptor keyDescriptor; @OneToMany( fetch = FetchType.LAZY, cascade = CascadeType.ALL) @Column( name = "DATA_ITEMS" ) private List dataItems; @OneToOne( fetch

ObjectDB JPA 2.2 support ( java.util.stream.Stream )

Hi , in my database i want to fetch resultlist as big chunks.JPA 2.2 has new feature named Stream. So i can fetch all JPA queries with less memory. is there any news for objectdb ? Will you update objectdb for JPA 2.2 ?  eix128 Kadir BAŞOL We hope to support this feature soon

Problem witch CriteriaBuilder isMember(..)

class Container {     @ElementCollection( fetch = FetchType.EAGER)     List   testlist1 = new LinkedList ();     @ElementCollection( fetch = FetchType.EAGER)    

Cannot save or update entity on Spring App

("...").executeUpdate() 0; } } While the fetching methods work, there are two huge problems: the persist ... entityManagerFactoryBean; } Ieodaq Daniele Lotti While the fetching methods work, there are two huge

Some technical questions

an attribute of an object, but don't commit yet. Can another transaction fetch this object ... an attribute of an object, but don't commit yet. Can another transaction fetch this object without blocking

Possible issue with Spring JPA and Embedded

after detach. Your Spring JPA test passes if you set eager fetch for that collection:     @ElementCollection( fetch =FetchType.EAGER)     public List getRules() {  

Slow searching with two indexes

for a way to optimise this querying.  What I'm trying to fetch in my queries are a limited ... with the new index with no need for further data retrieval. Another option that can be checked is running the query with lazy fetch . support Support

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

Group by: list if no aggregate function is specified

, then fetching children list for each parent - not a good idea. Thank you. Vladiator Vlad Myachikov You may use JOIN FETCH for this purpose. support Support

Difference performance in ObjectDB Explorer and in java project

, but requires further round-trips to fetch related data. You can try it also from your program:     query.setHint("objectdb.result- fetch ", "LAZY"); support Support Thank you, is where any

Adding multi part path index on non-embedable object member

Is there a way to add single member index on members of a object member which is not configured embedable but is/are mapped by id like the two members below.  @Entity public class Customer { @MapsId @ManyToOne( fetch = FetchType.LAZY) private Merchant merchant; @MapsId @ManyToOne( fetch

JPA 2.0 Criteria API: (When) Fully supported ?

An excerpt from the website of a 3rd party vendor which tries to support JPA 2.0:   "The primary difference between JPA 1.0 and JPA 2.0 implementations is how data is fetched : the JPA 1.0 implementation creates a JPQL query string for fetching while the JPA 2.0 implementation uses Criteria

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

will alway be empty after detaching. @OneToMany( fetch = FetchType.EAGER, cascade = CascadeType ... fetch mode is one way to do that. support Support I ran in to this problem but didn't want to hassle

Trouble bug on explorer

allowIdWaitMe; @OneToOne( fetch = FetchType.EAGER) private Language mainLanguage; @OneToMany( fetch

Another behavior of transaction isolation level in comparing to 2.8.7

(queryString, MyEntity.class); q.setHint("objectdb.result- fetch ", "LAZY"); List firstQueryResult = q ... .setHint("objectdb.result- fetch ", "LAZY"); List secondQueryResult = outerQuery.getResultList

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

performance limit

result loading, using the objectdb.result- fetch query's hint in order to separate query execution from result loading. Loading the query results could be very slow if eager fetch is used extensively

Query vs Extent for retrieving data

you can either annotate these fields with @Persistent(defaultFetchGroup="true") , or use fetch groups do define more complex fetch strategies. support Support

How to query for list of lists ?

") public class Inspiration implements Serializable { (...) @ElementCollection( fetch = FetchType ... ") @ElementCollection( fetch = FetchType.EAGER) private List reviewSnippets; ...   Finally

Performance with large databases

be affected significantly by a larger database. support Support Is fetching an object by the id faster than fetching by an indexed field, or should these be about the same speed? sjzlondon Steve Zara

Merge of entity classes with "mapped by" very slow

Hi, I have found a strange behavior when merging entities with "mapped by" set on @OneToMany relation. Even if object is fetched with find on the same transaction, merge is very slow. It's because on merge every single relation marked as LAZY is fetch from database. Attached two examples

native sql queries

at com.objectdb.jpa.EMImpl.createNativeQuery(EMImpl.java:925) at Fetch .main( Fetch .java:129) /Fredrik

objectdb.java.util.ArrayList and performance

Hello guys, i have a question regarding "objectdb.java.util.ArrayList" and performance. In my project i'm iterating over an array with about 100k items. Fetching them into the EntityManager takes ... the problem. A lazy loaded relationship was not fetched , which was accessed when iterating over the list. ph.schoerkhuber Philipp Schörkhuber

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

Double persist of Entity field with Cascade.ALL

bookTitle; @OneToMany(cascade= CascadeType.ALL, fetch = FetchType.EAGER) private List chapters; The Chapter

Java 8 Enhancer Problem

fetch , detach, change and merge an object I get the following exception: Caused by: com.objectdb.o

Speeding up reporting queries with size() on list

(targetEntity = Product.class, fetch = FetchType.LAZY) private List products; There is only 680

Explorer in 2.3

. Then at the bottom of the table or tree, have a link to fetch the next N. This should also apply to collections

Level 2 cache not hit in @ManyToOne

without performance penalty. You can change this behavior by setting the  "objectdb.result- fetch " query hint

"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

Is 2 level cache in use?

hint and check if it helps:  query.setHint("objectdb.result- fetch ", "lazy

find() cost unreasonable time!

="parent", fetch =FetchType.EAGER) protected List Sons; function of checking: private static void

Missing Data on Retrieval (0, null values)

) then you must make sure that data is fetched from the database before you your first reflection operation

ObjectDB 2.2.4

objects in criteria queries . Improved Explorer performance by disabling EAGER fetch . Fixed critical ... in using JOIN FETCH with DISTINCT. Fixed Metamodel API's getTypeId  method to support single ID field .

ObjectDB 2.3.3

Improved compilation performance of OR queries with many elements. Fixed eager fetch of maps and nested embedded objects. Fixed a bug in removing a new flushed entity object before first commit ... on merge to be called after merging fields ( issue #551 ). Fixed eager fetch of collections

ObjectDB 2.6.3

operation). Fixed JOIN FETCH bugs. Fixed a performance issue with mapped by fetch . Fixed the ObjectDB

NullPointerException on TreeSet load

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

ObjectDB 2.5.0

Added support of nested paths in JOIN FETCH . Added support of persisting collections and maps of user defined types. Added support of Google (Guava) collections. Added support of inheritance of ID ... inheritance. Fixed a bug in JOIN FETCH . Fixed a bug in loading reference primary key field of an abstract

ClassCastException in Tuple.get

joinProvidingPerson = rootDemandAnswer.join("providingPerson"); joinDemand.join("execution"); joinDemand. fetch ("services"); joinDemandingPerson. fetch ("account"); cq.multiselect(joinDemand, rootDemandAnswer).distinct

ObjectDB 2.5.1

Added support of editing enum values in the Explorer. Added logging of type registration . Added error message when using mapped by (inverse) collections and maps of invalid types. Changed JOIN FETCH to act as LEFT JOIN in path expressions. Updated the PDF manual. Fixed a possible deadlock

"is not null" queries not working with index

"is not null"-queries are not working correctly for indexed fields. Following SSCCE creates 1000 entities. A null value is assigned to an indexed field for every second entity. When doing count-queries at the end, wrong results are fetched . import java.io.Serializable; import javax.jdo.annotations

new database error

.entities. fetch .FetchSkill.FetchWhere_Id(FetchSkill.java:50) at org.radius.entities.add.AddAgentSkill

ObjectDB 2.3.6

bug in the default fetch policy. Fixed a new bug in retrieving byte[] ( issue #624 ). Fixed a bug in

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.8.6_06

Improved performance following a large eager fetch ( issue #2694 ).