About SET

forum_thread

Lazy loading does not work - crud takes long

tomee7.0.0SNAPSHOT,objectdb 2.6.4 The OneToMany Entities are filled with 40.000 Records and they have between 20-40 Columns. It takes over 50s to load all Project Enities that contains the OneToMany Relationships. It should be load lazy but i didnt know why the query fetch all the Data. #1 2015-10-24 23:07 tomee7.0.0SNAPSHOT,objectdb 2.6.4 The OneToMany Entities are filled with 40.000 Records and they have bet ...

 
forum_thread

How to enhance the JPA/Spring/MVC to implement RESTfull for CURL client?

Here is my attempt to enhance the JPA/MVC/eclipse tutorial to implement a RESTful service. Why does this not work with this curl command? I get 404. Can someone help me correct this? Do I need to change my web.xml servlet mapping in web.xml? I've been experimenting with and nothing seems to work. Thanks Siegfried Here is my web.xml fragment: ... I had tried that previously and failed set a break point and failed to notice that I was getting a different error: ...

 
forum_thread

Possible issue with Spring JPA and Embedded

Hello, ... after detach. Your Spring JPA test passes if you set eager fetch for that collection: @ ElementCollection ...

 
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: ... separate queries and merging the results (e.g. into a Java set, maybe LinkedHashSet , if order is important) may be the right way. ...

 
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.... from the request's "guests" attribute that is set by the servlet in the previous step). The next step (and the last in ...

 
forum_thread

Complex Schema Upgrade not working

Hello, We're trying to upgrade the DB-Schema. Simplied our source/original Schema/Class-Hierarchy looked like this: class contact.Contact class customer.Customer extends contact.Contact class member.Member extends customer.Customer We have database records within each class type (Contact, Customer and Member). #1 2015-01-19 09:38 Hello, We're trying to upgrade the DB-Schema. Simplied our source/original Schema/Class-Hierarchy loo ...

 
issue

ObjectDB enhancement fails on "is" form for @Transient boolean isLoaded(), ok for "getter" form @Transient boolean getLoaded()

Older objectdb-2.4.0_06, Java6. For the following (note the use of "is" form) in a class Element I encounter ObjectDB enhancement errors: ... Although some of your online docs refer to JavaBeans set and get methods (such as http://www.objectdb.com/java/jpa/entity/fields), I ...

 
issue

stress test -> com.objectdb.o.InternalException: null

I am running a stress test with 2 users, each making a request to the JSON API (which uses as storage ObjectDB) each 50 milliseconds. An API call might have between 1-4 db calls, but they are relatively light, and the db has just a few MB at the moment. After a few minutes I got this exception. If I decrease the load, it doesn't happen. If I increase it, I get it very often. Any solution/fix? A sample project is very hard, if not impossible, to create, because it uses all the system. ... system you're going to use for testing, to know how to set the sample. edit ... nor in Tomee, excepting that persistence.xml was set to use ObjectDB in embedded mode. ...

 
forum_thread

Groovy JPA example

I've been using Groovy with ObjectDb, just thought I'd post a short snippet to show how easy this is to do. The following script (which is one import and one statement) will open a database, run a query and print some results. --------------------------------------------------------------- import javax.persistence.Persistence ... ignored, as long as the connection to ObjectDB is properly set in a persistence.xml file. ObjectDB ...

 
forum_thread

Pessimestic Locking doesn't release when application unexpectedly terminates.

Hi, We have several services in our app framework that we want to use a cluster singleton. Our approach to this was to use Objectdb's pessimestic locking. This seems to work, but if the owner of the current pessimestic lock abruptly quits without releasing the lock it doesn't get released.    Is there anyway the server can detect that a client (lock owner is no longer connected) and therefore release the lock ?   Thank you   Paul Newman #1 2016-02-27 12:23 Hi, We have several services in our app framework that we want to use a cluster singleton. Our approach t ...