[hibernate-dev] [OGM] AbstractKey

Emmanuel Bernard emmanuel at hibernate.org
Mon May 18 10:14:08 EDT 2015


No. We had that abstract class before and that turned out to be a bad idea when you factor forever backward compatibility into the mix. 

> On 18 mai 2015, at 13:08, Ewa Stawicka <ewastawicka91 at gmail.com> wrote:
> 
> There are three classes AssociationKey, EnityKey, IdSourceKey, which all
> contains methods:
> public String[] getColumnNames()
> public Object[] getColumnValues()
> public String getTable()
> 
> and we have three methods in couchdb module:
> Identifier.createAssociationId, Identifier.createEntityId,
> CouchDBDatastore.createId, each one does basicly the same, but takes
> different parameter.
> Can we extract abstract class AbstractKey, with columnValues field, some
> getters, createId method? I will need createId method in couchbase module.
> 
> Ewa
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev



More information about the hibernate-dev mailing list