Overriding datanucleus automatically generated id field

According to:

If an persistable object doesn't have an id field, datanucleus will automatically generate an id field for. Oh and I hate that !

@DatastoreIdentity(column = "id", strategy = IdGeneratorStrategy.IDENTITY) //Nice, good looking auto-increment id field

But what if that's not the whole view of the case ? I faced this situation when I had my object persisted within the graph of another objects. This case is datanucleus calls it, the compound identity.



Popular posts from this blog

Testing SOAP services using pingdom