Home » Search

About XML

11-20 of 200Refresh
Forum
30

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 ... ); }   Thanks for any help   Defining default listeners is one of the few things that currently require XML ... when my objects are persisted, without using XML, and without defining listeners for each classe. If you use
Manual
28

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:
Manual
25

JPA Lifecycle Events

can only be specified in a mapping XML file because there is no equivalent annotation:
Forum
24

PersistenceException UserException: Failed to validate persistence.xml

: Failed to validate xml file C:\!heatboxes-web\build\web\WEB-INF\classes\META-INF\persistence.xml ... :152) ... 80 more Caused by: com.objectdb.o.UserException: Failed to validate xml file C:\!heatboxes-web\build\web\WEB-INF\classes\META-INF\persistence.xml: at com.objectdb.o.MSG.d(MSG.java:74
Forum
24

How to package orm.xml when using EJB in WAR?

Hi, I have database utility classes in one project, the id's use sequences declared in an orm.xml ... > and the persistence.xml references this orm.xml :
Forum
24

Compile time enhancement using build.xml of a Netbeans web application

Does anybody have a complete, working example of the adaptations required in the build.xml ... :\my-project\classes\*.class"/> The (rather overwhelming) nbproject/build-impl.xml of Netbeans, that is included into build.xml, offers a number of empty targets to override in build.xml, such as
Forum
24

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
Forum
23

Externalising persistence.xml properties in Glassfish?

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

How to change properties in urls2.xml?

see it exists a file name "urls2.xml".
/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" )
Forum
23

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