You can write your own Datanucleus identifier factory [1]: extend DN2IdentifierFactory and overwrite getColumnIdentifierSuffix
[1] http://www.datanucleus.org/documentation/extensions/rdbms_identifier_factory.html [2] https://github.com/datanucleus/datanucleus-rdbms/blob/0a769efa72174ee0907f4b9c4d5eb7e5389058d6/src/main/java/org/datanucleus/store/rdbms/identifier/DN2IdentifierFactory.java [3] https://github.com/datanucleus/datanucleus-rdbms/blob/0a769efa72174ee0907f4b9c4d5eb7e5389058d6/src/main/java/org/datanucleus/store/rdbms/identifier/DNIdentifierFactory.java#L621-L649 On 6 November 2015 at 13:32, Dan Haywood <d...@haywood-associates.co.uk> wrote: > Don't know why it does it (it is a rather odd name, I agree) but iirc you > can override it using @Column(name=...) > > Check out Estatio, we do it there anyway. > > Cheers, Dan > On 6 Nov 2015 11:55 am, "Stephen Cameron" <steve.cameron...@gmail.com> > wrote: > > > Hi, > > > > Just interested to know if there is any way to stop DataNucleus adding > _oid > > to the end of all its generated foreign keys, this it with > > @PersistenceCapable( identityType = IdentityType.DATASTORE)? > > > > It adds _id_oid to the tail of them all so wondering why? > > > > Thanks > > >