About FROM

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 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 ...

 
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 ...

 
tutorial

Step 5: Add a JSP Page

Explains how to add a JSP page that uses JPA to an Eclipse 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 ...

 
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. ... id or content (and not the methods that are inherited from java.lang.Object , which are based on the object address, which is not ...

 
issue

Schema-Update: Rename superclass and remove one subclass

Hello, we renamed a superclass and removed one of the subclass. If we then try to open the Database (with ObjectDB-Explorer) we get a "Failed to generate dynamic type ..."   Small Example: Generate Database ... q = em. createQuery ( "SELECT c FROM " + RenamedSuperClass. class . getName ( ) + ...

 
forum_thread

Merge with Parent/Child entities not possible

Can you please tell me why the following unit test ends with "[ObjectDB 2.5.7_02] javax.persistence.RollbackException"? ... = entityManager. createQuery ( "Select p from ParentEntity p" , ParentEntity. class ) ; ParentEntity ...

 
forum_thread

Possible issue for default id generator

First all, congratulations to Objectdb team for the excellent work. Possible issue for default id generator when strategy is sequence. Error: Incomplete definition of auto value in field MyTestCase$MyEntity.idgenerator name is missing (error 342) Please see attached file MyTestCase.java lines 35 and 36. I am not an expert but in my opinion there is no default generator but the element generator is optional. Thanks. ... a runtime error, but maybe to ease porting applications from other JPA providers to ObjectDB a default should be provided in future ...