ObjectDB ObjectDB

Internal Website Search

51-60 of 200 resultsRefresh
47

Failed to validate XML

[ObjectDB 2.6.7_05] javax.persistence.PersistenceException Failed to validate xml file /{erased-by-me}/tiro/lib-core/build/resources/test/META-INF/persistence.xml: (error 211) at com.objectdb.jpa ... .main(AppMain.java:144) Caused by: com.objectdb.o.UserException: Failed to validate xml file /{erased
47

Externalising persistence.xml properties in Glassfish?

Hi, I've run into a little bit of a wall with regards to persistence.xml and externalising the URL ... lookups). I am using Glassfish. Basically, what I am trying to get at: E.g. persistence.xml ... for your time! Willks William Hello, Why dont you create multiple presistance units in the persistance.xml
46

How to change properties in urls2.xml?

see it exists a file name "urls2.xml". <url> <main>/var/lib/tomcat7/db/myDb.odb;user=admin;password ... . :( Does it exist a way to change urls2.xml properties ? Adding ?port=XXXX at the end of the persistence.xml database local url doesn't work. ( Tomcat says "Connection refused" ) <properties
46

Is named-query supported in orm.xml

I prefer to keep custom JPQL named queries in an external file, e.g. orm.xml, rather than in ... > This works fine with e.g. eclipseLink and postgres, but objectDB complains with an error like: org.xml.sax ... was found starting with element 'named-query'. One of '{"http://java.sun.com/xml/ns/persistence/orm
46

Jboss 6 persistence.xml startup error

, but I keep getting stuck on setting up the persistence.xml on JBoss 6 AS. Here is my setup: <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http ... /xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd
46

Specify location of persistence.xml

Is it possible to tell objectdb explicitly where the persistence.xml is located? The background ... also a persistence.xml I exceed the number of persistable classes, as I have one subproject for each persistence technology and somhow the jpa persistence.xml is read in also resulting in more than 10
46

a second mapping-file is ignored in persistence.xml by enhancer

Hello Support-Team, we have a problem with the enhancer. In the persistence.xml are two mapping-files: <mapping-file>META-INF/orm.xml</mapping-file> <mapping-file>META-INF/ormreq.xml</mapping-file> We start the enhancer and the entities of orm.xml will be enhanced by following output: enhancer
9

Storing JPA Entity Objects

setting the ObjectDB configuration or in a JPA portable way, by specifying the cascade-persist XML element in the XML mapping file: <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml
9

Feature suggestion: auto-detection of entities via persistence.xml extension

different modules, and frequently evolving/changing. JPA2 persistence.xml does not seem to have support ... /configuration.html Example extension usage in persistence.xml: <properties> <!-- Scan for annotated classes and Hibernate mapping XML files --> <property name="hibernate.archive
1

Step 3: Add a Context Listener Class

if not existing yet) when the web application starts, by instantiating an EntityManagerFactory. The database will be closed when the web application stops (or when the web server shuts down), by ... > Other... > Web > Listener and clicking Next. The Java package name should be guest. Enter GuestListener

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support