users@glassfish.java.net

Re: How to use/run JPA in a JSE platform?

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Wed, 21 Feb 2007 16:52:15 -0800

Which link shows wrong persistence.xml?
The Java Persistence Example page
(https://glassfish.dev.java.net/javaee5/persistence/persistence-example.html)
linked from the GlassFish persistence page
(https://glassfish.dev.java.net/javaee5/persistence/) has both, a Java EE and a
Java SE version of the same example, none of which uses a Web container.

Regards,
-marina

glassfish_at_javadesktop.org wrote:
> Unfortunately these examples turn out to be out of date (wrong) or they only
> work for NetBeans or only in a Web container. The examples I have found on
> the blog links in the message above don't actually work - the format of
> persistence.xml is invalid (the property tag requires a value attribute) and
> the location of persistence.xml is wrong (it has to be in the directory
> META-INF even if you are not using a jar). I'm going to post a simple JSE
> example so that people don't have to get stuck on bad examples. [Message sent
> by forum member 'jotobjects' (jotobjects)]
>
> http://forums.java.net/jive/thread.jspa?messageID=204749
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net For additional
> commands, e-mail: users-help_at_glassfish.dev.java.net
>