About FROM

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.... the guests that have already signed (which are retrieved from the request's "guests" attribute that is set by the servlet in the ...

 
forum_thread

EntityManager refresh problem

Dear Support, in the following code you can see a EntityManager.refresh() example. The example throws an assertion error with the following statement: Assert.assertEquals("entity 1", simpleEntity1.getFieldA()); In my opinion there should be no assertion error. I have tested the example with several objectdb versions (2.5.4, 2.5.6_06 and 2.5.7). Do you have an explanation for the assertion error? ... in this test is that refresh works by retrieving data from the database and in this test the refreshed object has not been stored yet ...

 
forum_thread

BIRT plugin: Trouble with Client/Server connection

I am having trouble setting up the birt points.odb sample with a client/server connection. I can connect to points.odb with the explorer.  I added a "Data Source" that works fine with local file.  The connection using the url fails the ping test.  I get (Failed to connect to server localhost:6136) The following is my setup: Dev Versions:     MyEclipse Enterprise Workbench - 12.0.0.me201311281640         -Eclipse platform - 4.3.1.v20130911 ... and whether you can access that database on the server from the Explorer. ObjectDB Support ObjectDB - ...

 
forum_thread

@ElementCollection Set<Integer> is emptied sometimes

Hi! I'm facing a really strange behavior, which I can't yet reproduce, but it happened 3-4 times already. ObjectDB seems to clear some fields that are @ElementCollection Set<Integer> of my objects. They appear HashSet<Integer> in ObjectDB Explorer. The only common thing I've seen is that this MAY happen when schema changes, even though nothing is changed in that Object's class. Any ideas why would this happen and how could it be avoided? Thanks (version 2.5.3 & Tomee & NetBeans) ... using @ElementCollection on my Set<Integer> fields from User class. I've seen the behavior a couple of times, then I ...

 
forum_thread

Post-compilation enhancement vs Automatic Run-time enhancement

We are getting massively different results on field loading between explicit post-compile enhancement and automatic run-time enhancement. Testing exactly where and when the results are different for our demo web app is a very time consuming task, and very difficult, it means testing literally 100s of user interfaces (noting we get different results OUTSIDE THE JAVA SERVER FACES BACKING BEAN LAYER depending on the enhancement stragegy). Can you please explain how this could possibly be so ? ... This may be relevant if you access persistent fields from non entity classes. Could you please provide details on these ...

 
tutorial

Step 4: Add a Servlet Class

Explains how to define an EJB session bean in an Eclipse Java EE 6 web application.... All the Guest entity objects are retrieved from the database and stored in the request's "guest" attribute. Then the ...

 
forum_thread

Multitenancy with discriminator

Hello, I have a very large business application that makes use of the Hibernate "Filters" feature and of the EclipseLink "Single Table Multitenancy with discriminator" feature in order to implement entities filtering based on a discriminator. Here is an example of one of my business objects: public class BusinessPartner {     protected String id;     protected Domain domain;     ... } ... main entity can have collections containing object from various domain. And the question is: do you plan to add a feature ...

 
tutorial

Step 4: Add a Servlet Class

Explains how to define an EJB session bean in a NetBeans Java EE 6 web application.... All the Guest entity objects are retrieved from the database and stored in the request's "guest" attribute. Then the ...

 
forum_thread

Unable to delete the .odb file programatically

Hi, I created the test.odb file, read the contents and now trying the delete the odb file using objectd2.x. I see the folder there are two files created test.odb and test.odb$. Using the following code to delte the odb files ... luck :( Code used for creating PersistanceManager from PersistanceFactory PersistenceManagerFactory pmf = ...

 
tutorial

Step 5: Add a JSP Page

Explains how to add a JSP page that uses JPA to a NetBeans Java EE 6 (J2EE) web application.... the guests that have already signed (which are retrieved from the request's "guests" attribute that is set by the servlet in the ...