You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by paksegu <pa...@yahoo.com> on 2007/03/30 18:16:42 UTC

uuid-hex Identity

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.

Re: uuid-hex Identity

Posted by paksegu <pa...@yahoo.com>.
okay thanks i got confused on generatedValue from reading the documentation I was sort of thinking generatedString.

Marc Prud'hommeaux <mp...@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.

Re: uuid-hex Identity

Posted by Marc Prud'hommeaux <mp...@apache.org>.
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.