How to set id primary key auto increase?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to set id primary key auto increase?

boloi
Hi all,
I'm newbie,I don't know how to set what type in entity to id can auto increase.Please give me advise.

Thanks all,
Boloi.
Reply | Threaded
Open this post in threaded view
|

Re: How to set id primary key auto increase?

Paul Foxworthy
Hi Boloi,

The SequenceValueItem entity holds named sequence numbers.

On example using an automatically generated sequence is at https://fisheye6.atlassian.com/browse/ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java?r=1163511#to124

Cheers

Paul Foxworthy

boloi wrote
Hi all,
I'm newbie,I don't know how to set what type in entity to id can auto increase.Please give me advise.

Thanks all,
Boloi.
--
Coherent Software Australia Pty Ltd
http://www.coherentsoftware.com.au/

Bonsai ERP, the all-inclusive ERP system
http://www.bonsaierp.com.au/