About not

forum_thread

Entity not removed 100%

When I remove an object from a class it get's removed but the other objects that had that object as an attribute still keep it although I am using @OneToMany(cascade=CascadeType.ALL) This is what it remains when I check the removed object from another object's attributes     #1 2017-03-24 19:03 When I remove an object from a class it get's removed but the other objects that had that object as an attrib ...

 
issue

Alias not used in ORDER BY

Hi, I am doing something simple like final Root<T> from = criteria.from(T.class) final Path<?> path = from.get("someStringProperty") final Expression<String> upperPath = builder.upper((Expression<String>) path); upperPath.alias("TEST"); criteria.multiselect(from, path); criteria.orderBy(builder.asc(upperPath)) I would have expected the alias to be used in the ORDER BY clause, something like Bug Version: Priority: Low Status: Fixed Replies: 2 Type:  Bug ...

 
issue

@PrePersist not working correctly

I have a method to calculate some values before persisting to the database. So i annotated it with @PrePersist. If i merge an object the annotated method get's called but all members are on their default values. I only tried it with new objects. So merge get's an object with id = null and therefore shoud behave like persist. (I always use merge) If i set a breakpoint before the em.merge(..) call the object is ok. Inside the @PrePersist method all fields are cleared.  Bug Version: Priority: Normal Status: Fixed Replies: 1 Type:  Bug ...

 
forum_thread

Multiple joins did not return expected result

Hello, I have 3 entity classes: Event - String title Calendar - List<Event> @OneToMany SharedCalendar extends Calendar - Calendar original Now I want to retrieve all events from a specific calendar by its id like: #1 2017-10-27 07:49 Hello, I have 3 entity classes: Event - String title   Calendar - List<Event> ...

 
forum_thread

$temp property not evaluated properly when used in log path

I have the following lines in my objectdb.conf file: <log path="$temp/ObjectDB/log/" max="8mb" stdout="false" stderr="false" /> <log-archive path="$temp/ObjectDB/log/archive/" retain="90" /> I don't believe that the $temp property is being evaluated properly here as it creates a new directory "$temp" in the same directory as my execution script. Shouldn't this be logging to the system temp directory? #1 2011-09-09 17:43 I have the following lines in my objectdb.conf file: <log path = "$temp/ObjectDB/log/" max ...

 
forum_thread

Undeploying Glassfish web application does not disconnect from ObjectDB

Glassfish3.1.1 Netbeans7.1 ObjectDB 2.3.7_19 If I deploy a web application to Glassfish using ObjectDB as JPA provider, then undeploy, I can't access the database file in the ObjectDB explorer, the explorer claims the database file is being accessed by another process. If I restart Glassfish I can open the database file in the ObjectDB explorer ok. #1 2012-06-05 09:03 Glassfish3.1.1 Netbeans7.1 ObjectDB 2.3.7_19 If I deploy a web application to Glassfish ...

 
manual

[ODB1] Chapter 6 - Persistent Objects

Shows how to store, retrieve, update and delete database objects. ... some database content, or a transient object, i.e. not related to any database. Storing Objects Explicitly When a new ... thrown if the argument to makePersistent( ... ) is not an instance of a persistent class (as defined in chapter 3 ). Only ...

 
api-jpa

javax.persistence.criteria.CriteriaBuilder

Used to construct criteria queries, compound selections, expressions, predicates, orderings.(Interface of JPA)

 
api-jpa

javax.persistence.metamodel.ManagedType

Instances of the type ManagedType represent entity, mapped superclass, and embeddable types.(Interface of JPA)

 
api-jpa

javax.persistence.metamodel.EmbeddableType

Instances of the type EmbeddableType represent embeddable types.(Interface of JPA)