About retrieve

forum_thread

Merge Issue: Attempt to reuse an existing primary key value

Hello, I have just updated my objectdb version from 2.4.6 to 2.5.5. I observed a new bug or a feature on an ordinary merge operation. This is the test case ( work in 2.4.6 version ) : 2 parents object share the same child on a ManyToMany relationship with Cascade.ALL constraint. #1 2014-06-10 08:02 Hello, I have just updated my objectdb version from 2.4.6 to 2.5.5. I observed a new bug or a fea ...

 
tutorial

Step 5: Add a JSP Page

Explains how to add a JSP to a NetBeans Spring MVC JPA web application project. In this step we will add the JSP that generates the guestbook HTML output: Open the [New JSP File] dialog box by right clicking the WEB-INF node under the Web Pages node (in the [Projects] window) and selecting New > JSP ... En ...

 
tutorial

Step 3: Add a Context Listener Class

Explains how to add a servlet context listener (to manage an application scope EntityManagerFactory) in an Eclipse Web Application. The Guest entity objects will be stored in an ObjectDB database, which will be represented by a JPA's EntityManagerFactory javax.persistence.EntityManagerFactory JPA interface Interface used to interact with the entity manager ...

 
forum_thread

ObjectDb Supports Clustering of Servers?

Hi,     I am new to ObjectDb. we have a scenario where we deploy the same application in more than one linux (Jobss) servers. In this case user request can go to any server depends on the availability of the servers (This is for load balancing ). As of now we are using Oracle + Hibernate + JPA , as Oracle is shared data there was no problem. ... Object db server in my local too.  But when i retrieve objects from my local DB it was too fast where as it is taking so much ...

 
issue

Internal exception

Hello. We got the following stacktrace. Can you explain me what this internal exception means and why it was thrown? It only happens when the entities are enhanced. Best regards BTC ES   ... query (due to changes since last commit/flush) in order to retrieve the mapped by instances. The stack trace indicates a failure to ...

 
tutorial

Step 3: Add a Context Listener Class

Explains how to add a servlet context listener (to manage an application scope EntityManagerFactory) in a NetBeans Web Application. The Guest entity objects will be stored in an ObjectDB database, which will be represented by a JPA's EntityManagerFactory javax.persistence.EntityManagerFactory JPA interface Interface used to interact with the entity manager ...

 
tutorial

Step 5: Add a JSP Page

Explains how to add a JSP page that uses JPA to an Eclipse Java EE 6 (J2EE) web application. In this step we will add the JSP that generates the guestbook page output: Open the [New JSP File] dialog box by right clicking the WebContent node (in the [Package Explorer] window), selecting  New > Other... > Web > JSP File and cli ...

 
forum_thread

mappedBy problem

If I put the mappedBy element to the @OneToMany, the owned side (the many side) will never persist ! for example @Entity public class Employee { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) public Long id; public String name; @OneToMany(targetEntity=Address.class,mappedBy="employee") public List<Address> addresses; }   @Entity #1 2010-06-12 18:03 If I put the mappedBy element to the @OneToMany, the owned side (the many side) will never persist ! for exa ...

 
issue

JQL-Update Queries fails with activated L2-Cache

When using JQL-Update Queries it is basically not working without calling entityManager.clear() after a transaction commit. When the clear() method isn't called the entityManager will never return a container the updated Entities. Scenario 1: Disabled L2 Cache, updating elements using UPDATE-Query and fetching Entities afterwards from database. Expected result: Getting changed Entities from database - Actual result: No changes are visble. Bug Version: Priority: Critical Status: Closed Replies: 1 Type:  Bug ...

 
forum_thread

Pessimistic Lock Timeouts setting

Hi,   I realise that JPA2 doesn't necessarily define a standard API way for Lock Timeouts. However, there is a standardised query 'hint' that can be setup to make the underlying DB lock a record for a specific time. The hint property is: "javax.persistence.lock.timeout" ... a simple bean and does not support transaction. I used to retrieve my stock object by a JPA EJB. However, after retrieval, once the ...