On Wed, 18 Feb 2009, Rasmus Fogh wrote:
> Do you mean the StructureEnsemble.ensembleId?
Not sure!
> I would recommend the same behaviour that we use for .serial attributes:
> new serials start at the highest current serial + 1. So, if you have
> objects with serials 2, 5, 11, the next objects gets serial 12. In this
> way serials tend to be predictable and increasing over time. Of course if
> you delete the most recent objects, the serials will get re-used after
> save, quit, and re-start. This is not perfect, but allowing that little
> wart saves you from saving the last used serial explicitly.
This seems the sane way to go.
Brian
Dr. Brian O. Smith ---------------------- B Smith at bio gla ac uk
Division of Molecular & Cellular Biology,
Faculty of Biomedical & Life Sciences,
Joseph Black Building, University of Glasgow, Glasgow G12 8QQ, UK.
Tel: 0141 330 5167/6459/3089 Fax: 0141 330 4600
-------------------------------------------------------------------
The University of Glasgow, charity number SC004401
|