About fetch

issue

Retrieving Metamodel without Connection

Hello! I use Spring Data JPA. It uses the Metamodel to create repository beans. This triggers a connection to the ObjectDB server. It happens on every start of the Context. If it fails the application isn't available at all. I had the situations multiple times that my database server took longer to boot after a power outage than the tomcat machine. This leads to an unusable application until i restart tomcat. ... i restart tomcat. Other JPA providers are able to fetch the Metamodel without connecting to the DB. I would appreciate it ...

 
forum_thread

TemporalType injection with Calendar using JPA

I have ObjectDB  JPA  comsummed by a RESTful web service deployed on Tomcat. I am using an embedded object as a primary key, which has time fields which I have annotated with TemporalType.TIMESTAMP When I use a java.util.Date as a field on this object there is no problem. However, if I use a java.util.Calendar it encounters an exception.   Calendar is what I need.  Is there something obvious here that I am failing to see?   ... = javax. persistence . CascadeType . ALL , fetch = javax. persistence . FetchType . EAGER ) ...

 
forum_thread

Double persist of Entity field with Cascade.ALL

I am building a JavaEE application using Netbeans 7.0.1, Glassfish 3.1 and ObjectDB 2.3.3. I have a Book class with entity field Chapter which has a CascadeType.ALL property. The Book fields are as follows: @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; private String bookTitle; @OneToMany(cascade= CascadeType.ALL, fetch= FetchType.EAGER) private List<Chapter> chapters; The Chapter fields are as follows: ... ( cascade = CascadeType . ALL , fetch = FetchType . EAGER ) private ...

 
api-jdo

Persistent.loadFetchGroup

Name of the fetch-group to use when this member is loaded due to being referenced when not already loaded.(Annotation Element of javax.jdo.annotations.Persistent)

 
forum_thread

Removing an element from an @OneToMany doesn't work

Hello. I have a Parent and Child entities. // in the parent @OneToMany(mappedBy = "parent", fetch = FetchType.EAGER, cascade = CascadeType.ALL) private List<Child> children; // in the child @ManyToOne private Parent parent; Somewhere I do this: parent.getChildren().remove(0); manager.merge(parent); Manager.merge is just ... OneToMany ( mappedBy = "parent" , fetch = FetchType . EAGER , cascade = CascadeType ...

 
issue

preUpdate-methods are called when there is no change

Dear Support Team, we ran into some difficulties with a database. When fetching a entity using the EntityManager and afterwards calling "iterator().next()" a transaction begin/commit will end up in updating the Entity even there was no change. We attached a simplified test case where only 2 reduced versions of the entities are available. But it still shows the unexpected behavior. To reproduce just run the "EntryPoint" class. Bug Version: 2.5.3 Priority: Normal Status: Closed Replies: 1 Type:  Bug ...

 
api-jdo

makeTransientAll(pcs, useFetchPlan)

Make instances transient, removing them from management by this PersistenceManager.(Method of javax.jdo.PersistenceManager)

 
api-jdo

fetchByteField(fieldNumber)

Fetch one field from the field manager.(Method of javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier)

 
api-jdo

fetchShortField(fieldNumber)

Fetch one field from the field manager.(Method of javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier)

 
issue

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

Hello! When the JPA entities are not enhanced the remove of an entry from a @OneToMany collection is not possible. The following java code demonstrates the problem. The statement parentEntity.getChildEntityContainer().remove("01"); does not work with not enhanced JPA entities. ... {   @ OneToMany ( fetch = FetchType . LAZY , cascade = CascadeType ...