Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.databases > #343

Re: Generating the Entity

From "Lew" <lew@THRWHITE.remove-dii-this>
Subject Re: Generating the Entity
Message-ID <gfd7jt$o8q$1@aioe.org> (permalink)
Newsgroups comp.lang.java.databases
References <4919fd3f$0$90274$14726298@news.sunsite.dk>
Date 2011-04-27 15:23 +0000
Organization TDS.net

Show all headers | View raw


  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

Back to comp.lang.java.databases | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Generating the Entity Cla "Thufir" <thufir@THRWHITE.remove-dii-this> - 2011-04-27 15:23 +0000
  Re: Generating the Entity "=?UTF-8?B?QXJuZSBWYWpow7h" <=?utf-8?b?qxjuzsbwywpow7h@THRWHITE.remove-dii-this> - 2011-04-27 15:23 +0000
    Re: Generating the Entity "Thufir" <thufir@THRWHITE.remove-dii-this> - 2011-04-27 15:23 +0000
      Re: Generating the Entity "=?UTF-8?B?QXJuZSBWYWpow7h" <=?utf-8?b?qxjuzsbwywpow7h@THRWHITE.remove-dii-this> - 2011-04-27 15:23 +0000
        Re: Generating the Entity "Lew" <lew@THRWHITE.remove-dii-this> - 2011-04-27 15:23 +0000
          Re: Generating the Entity "=?UTF-8?B?QXJuZSBWYWpow7h" <=?utf-8?b?qxjuzsbwywpow7h@THRWHITE.remove-dii-this> - 2011-04-27 15:23 +0000

csiph-web