openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Prud'hommeaux <mprud...@apache.org>
Subject Re: uuid-hex Identity
Date Fri, 30 Mar 2007 18:35:28 GMT

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.


Mime
View raw message