About API

forum_thread

Jboss 6 persistence.xml startup error

Hi,   I'm trying to migrate a small EJB 3.1 project from Postgres to ObjectDb to test out feasibility, but I keep getting stuck on setting up the persistence.xml on JBoss 6 AS.   Here is my setup: ------- Start persistence.xml ------- ... a bit!). Anyhow solved this without referring to the API ? I don't want to use the API as I much rather declarative-ly set it up. Thanks ...

 
doc

java.lang.Throwable

The Throwable class is the superclass of all errors and exceptions in the Java language.(Class of java.langClass Throwable)

 
forum_thread

Retrieve data of all entity classes in a single query

I have in an objectdb file 10 Entity Classes with some data in each (Athlete, Trainer, Stadium etc) This is the code I use to retrieve all Managed Types and data for the Athlete class ... Using Java Reflection API. The JPA Metamodel API may also help. ObjectDB Support ObjectDB - ...

 
api-jpa

javax.persistence.JoinColumn

Specifies a column for joining an entity association or element collection.(Annotation of JPA)

 
forum_thread

Should I be able to persist a JFrame (or gui components in general)?

    I did the following: 1. (using Netbeans 8.02 & last available java 7 sdk) I sort of follow your tutorial(s) while applying the ideas to a sample that came with the IDE called GUIFormExamples (under samples). ... (my case GUIFormExamples) and add libraries. Add Java EE 6 API Library. While your here, this is also where I needed to add the ... The exception was due to having chosen "Java EE 6 API Library" when for my first working test I had chosen "Java EE 7 API Library" Also...I was really hasty in trying to get a query result ...

 
forum_thread

JDO support vs JPA

Hi, I am about to update the JDO metadata in the package.jdo files after moving from ObjectDB 1 to 2. However I found that there is no complete description or guide how the XML metadata should look in version 2. I found only small fragments of attributes in the description of JDO Annotations (to which XML element is the given annotation equivalent). So my questions to this are: 1. Is there some description of XML metadata for ObjectDB ver2 using JDO which I did not find? ... either this or that ? 3. I found there is only API documentation for JDO and no manual at all as there is for JPA. Does this ... same databases with JPA and JDO concurrently. The use of API does not affect the database file format. ObjectDB ...

 
forum_thread

Populating entity id before transaction commit

Hi, I have a question about populating auto generated id before transaction commit. We are using OBD with Spring and transactions are managed by Spring. The problem is, that we have custom annotation that wraps some of those functions to do additional work. But this annotation is executed before transaction is committed so all returned entities are not populated with ID in this context. How can I force ODB to populate entity ID before transaction is committed? Or maybe there is another way to finding ID of entity before commit? ... by: Object id = emf. < a href = "/api/java/jpa/EntityManagerFactory/getPersistenceUnitUtil" > ... ( ) </ a > . < a href = "/api/java/jpa/PersistenceUnitUtil/getIdentifier_Object" > getIdentifier ...

 
faq

Can I use ObjectDB to access a relational database?

... To access relational databases using the Java Persistence API (JPA) you will need an Object Relational Mapping (ORM) tool, such as ... implementation supports also the Java Data Objects (JDO) API. ObjectDB is a full featured standalone Object Database Management System ...

 
forum_thread

How to define Default Entity Listeners without persistence.xml and orm.xml

I am using JPA programaticaly..ie without xml file, and i would like to define Default Entity Listeners. How to do ? Here my init code: ... a way using em.getDelegate() and then using objectdb api ? I would like to do specifics actions when my objects are ... the manual. You may also register listener using the JDO API, which is not documented but supported by ObjectDB. ...

 
forum_thread

migration path from JPA / Hibernate

Hi. Is there a conversion tool or documentation that is of help when migrating an existing JPA solution to ObjectDB? Any recommendations or known pitfalls when it comes to ...   ... exact details. Notice that the JPA 2 criteria query API is now fully supported (relevant documentation will be released in a few days). If your application uses old Hibernate API / extensions (e.g. Session instead of EntityManager , queries with ...