ObjectDB ObjectDB

Internal Website Search

61-70 of 200 resultsRefresh
19

JBoss 7 startup fails

-INF dir contains: context.xml <?xml version="1.0" encoding="UTF-8"?> <Context antiJARLocking="true" path="/Guestbook"/> persistence.xml <persistence version="2.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd
18

EntityManager getMetamodel() causes crash

code. Note I am using a persistence.xml (shown below), which appears to cause the problem. I ... ; } } The persistence XML: : <persistence-unit name="Test_PU" transaction-type="RESOURCE_LOCAL ... the entity list works if I do not use a persistence XML. The code works as expected with the persistence
17

Is persistence version 2.1 supported?

Using the current version of persistence.xml leads to an error: <?xml version="1.0" encoding="UTF-8" ?> <!--<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java
17

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

INFO  [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for GuestbookPU ... the deployment is to add into the persistence.xml file <property name="jboss.as.jpa ... > in the pom.xml when building the war <plugin>     <groupId>org.apache.maven.plugins</groupId
17

ObjectDB without javax.persistence

we get a “com.objectdb.o._PersistenceException:” with the message “Failed to validate xml file bundleresource://134.fwk2011579990:2/META-INF/persistence.xml” Caused by: com.objectdb.o._PersistenceException: Failed to validate xml file bundleresource://134.fwk2011579990:2/META-INF/persistence.xml: at com
16

Configure ObjectDB in spring context

is to configure entire ObjectDB (optionally objectdb.conf too) in springs context.xml file so that I'd be able ... persistance.xml file. My previous database.xml (which is included in application-context.xml) look like this <?xml version="1.0" encoding="UTF-8"?> <beans xmlns:xsi="http://www.w3.org/2001
3

javax.persistence.PersistenceContext

of the persistence unit as defined in the persistence.xml file. (Optional) The name of the persistence unit as defined in the persistence.xml file. If the unitName element is specified, the persistence unit
3

createEntityManagerFactory(emName, map)

the persistence.xml file or specify values for properties not specified in the persistence.xml
3

getMappingFileNames()

the mappings for the entity classes. The mapping files must be in the standard XML mapping format, be uniquely ... to a mapping-file element in the persistence.xml file. Returns: the list of mapping file names
3

getPersistenceXMLSchemaVersion()

Method javax.persistence.spi.PersistenceUnitInfo String getPersistenceXMLSchemaVersion() Returns the schema version of the persistence.xml file. Returns: persistence.xml schema version Since: JPA 2.0

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