Thanks, Stephen.
That article is for NB 4.1 and AS 8.x. There was no support for Entity
Classes at that time.
The url and top of the article mention these version numbers. Do you
still find it confusing and think it needs clarification?
Thanks,
Rochelle
Stephen Carpenter wrote:
> Hi Rochelle,
>
> Here's the article -
> http://www.netbeans.org/kb/41/generated-primary-keys.html
>
> Hope this helps.
>
> Stephen.
>
>
>> From: Rochelle Raccah <Rochelle.Raccah_at_Sun.COM>
>> To: stephen-hic_at_hotmail.co.uk
>> CC: persistence_at_glassfish.dev.java.net
>> Subject: RE: Implementation Strategy
>> Date: Tue, 31 Oct 2006 16:29:26 -0800
>>
>> Stephen, can you provide a link to the NB article you mention below?
>> It could be an old tutorial that needs updating.
>>
>> Thanks,
>> Rochelle
>>
>>>>>
>>>>>>>
>>>>>>> -------- Original Message --------
>>>>>>> From: Gordon Yorke <gordon.yorke_at_oracle.com>
>>>>>>> Subject: RE: Implementation Strategy
>>>>>>> To: Stephen Carpenter <stephen-hic_at_hotmail.co.uk>
>>>>>>> CC: persistence_at_glassfish.dev.java.net
>>>>>>> <persistence_at_glassfish.dev.java.net>
>>>>>>>
>>>>>>> Hello Stephen,
>>>>>>> Yes you would still need the @GeneratedValue annotation and
>>>>>>> would use the IDENTITY strategy
>>>>>>> (@GeneratedValue(strategy=IDENTITY)). There would be no needto
>>>>>>> remove the contactID references from you application. I am not
>>>>>>> aware of the article that you are referring to but Sun App Server
>>>>>>> with TopLink as the Persistence Provider does support PK
>>>>>>> generation in this form. JSF can leverage JPA as well. Examples
>>>>>>> can be found at
>>>>>>> http://www.oracle.com/technology/products/ias/toplink/jpa/examples-index.html
>>>>>>>
>>>>>>>
>>>>>>> --Gordon
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Stephen Carpenter [mailto:stephen-hic_at_hotmail.co.uk]
>>>>>>> Sent: Wednesday, October 25, 2006 7:21 AM
>>>>>>> To: gordon.yorke_at_oracle.com
>>>>>>> Subject: Implementation Strategy
>>>>>>>
>>>>>>>
>>>>>>> Hello Gordon,
>>>>>>>
>>>>>>> Thanks for replying to my earlier mail.
>>>>>>>
>>>>>>> I am looking for identity field PK generation. My db table has
>>>>>>> the following
>>>>>>> construction for the contact_id field, (Derby db),
>>>>>>>
>>>>>>> contact_id INT NOT NULL GENERATED ALWAYS AS IDENTITY
>>>>>>> ( START WITH 1, INCREMENT BY 1),
>>>>>>>
>>>>>>> Would I still use the GeneratedValue annotation and what
>>>>>>> implications are
>>>>>>> there for the JSF pages? Would I need to remove the contactid
>>>>>>> references in
>>>>>>> NEW.jsp for instance.
>>>>>>>
>>>>>>> I am developing in NetBeans5.5 with the Sun App Server.
>>>>>>> I am also confused about the use of App Server with db generated
>>>>>>> primary
>>>>>>> keys as I have just read a Netbeans article which implies that
>>>>>>> Sun App
>>>>>>> Server does not support db generated primary keys in this way ???
>>>>>>> It steers
>>>>>>> you towards EJB modules, sesssion and facade beans etc.
>>>>>>> Am I going to achieve inserts to db generated primary keys via JSF?
>>>>>>>
>>>>>>> Thanks again for your time,
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> Stephen.
>>>>>>>
>>>>>>> _________________________________________________________________
>>>>>>> Windows Live™ Messenger has arrived. Click here to download it
>>>>>>> for free!
>>>>>>> http://imagine-msn.com/messenger/launch80/?locale=en-gb
>>>>>>>
>>>>>>>
>>>>>
>>>>
>>
>
> _________________________________________________________________
> Be the first to hear what's new at MSN - sign up to our free
> newsletters! http://www.msn.co.uk/newsletters
>