Is it a child of another object where the numbers would reset, or is it unique throughout the DB? If so, why isn’t it the primary key?
> On May 23, 2018, at 4:52 PM, Tony Giaccone <[email protected]> wrote: > > Imagine I have a field in a persistent object, the field is not the primary > key, and I want it to be unique. So the obvious choice to me is to use a > sequence value from the db, so that I can avoid trying to calculate a value > in java. > > Is there an easy way to access that sequence value, from java, using > Cayenne? > > > Tony
