Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail From: "Lew" Subject: Re: Generating the Entity Message-ID: X-Comment-To: comp.lang.java.databases Newsgroups: comp.lang.java.databases In-Reply-To: <4919fd3f$0$90274$14726298@news.sunsite.dk> References: <4919fd3f$0$90274$14726298@news.sunsite.dk> Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92] Lines: 33 Date: Wed, 27 Apr 2011 15:23:10 GMT NNTP-Posting-Host: 96.60.20.240 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1303917790 96.60.20.240 (Wed, 27 Apr 2011 10:23:10 CDT) NNTP-Posting-Date: Wed, 27 Apr 2011 10:23:10 CDT Organization: TDS.net Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.databases:343 To: comp.lang.java.databases Arne Vajh|+j wrote: > Thufir wrote: >> On Mon, 10 Nov 2008 21:23:30 -0500, Arne Vajh|+j wrote: >> >> >>> I think that wizard is EJB specific. >>> >>> You can use JPA in non-EJB context though. >>> >>> See: >>> >>> http://en.wikibooks.org/wiki/Java_Persistence/Runtime#Java_Standard_Edition >>> >> >> I'll read up, however it seems a bit of a daunting task. Any >> pointers? Perhaps I'm not asking the right question(s)? > > The example looks simple to me. I've been studying JPA for a while, and it is a bit of a bear to set up, but not really very difficult. You set up an XML file to define a data source, defining the JNDI name as the glue between the different parts of the application. Then you annotate the entity classes, throw in an EntityManager and Bob's your uncle. -- Lew --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24