openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paksegu <paks...@yahoo.com>
Subject Re: uuid-hex Identity
Date Fri, 30 Mar 2007 21:04:05 GMT
okay thanks i got confused on generatedValue from reading the documentation I was sort of thinking
generatedString.

Marc Prud'hommeaux <mprudhom@apache.org> wrote:  
This is briefly discussed at:

http://incubator.apache.org/openjpa/docs/latest/manual/ 
manual.html#jpa_overview_meta_gen

An example of how the annotation might look:

@javax.persistence.Entity
@kodo.persistence.DataStoreId(strategy = 
javax.persistence.GenerationType.SEQUENCE, generator = "system")
public class MyEntity {
@javax.persistence.GeneratedValue(generator = "uuid-hex")
@javax.persistence.Column(name = "MY_UUID_HEX_COLUMN")
private String uuid;
}




On Mar 30, 2007, at 12:16 PM, paksegu wrote:

> Hi,
> Can anyone give me a tip or an example on using the uuid-hex 
> identity? Thanks
>
>
> Ransford Segu-Baffoe
>
> paksegu@yahoo.com
> paksegu@NoqturnalMediaSystems.com
>
> http://www.noqturnalmediasystems.com/
> http://www.noqturnalmediasystems.com/Serenade/
> https://serenade.dev.java.net/
>
> ---------------------------------
> The fish are biting.
> Get more visitors on your site using Yahoo! Search Marketing.




Ransford Segu-Baffoe

paksegu@yahoo.com
paksegu@NoqturnalMediaSystems.com

http://www.noqturnalmediasystems.com/
http://www.noqturnalmediasystems.com/Serenade/
https://serenade.dev.java.net/
 
---------------------------------
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message