seiyak/hibernate-ogm — comment on commit 0ded1effd0c4552fcabe7b36b60626e533857875
File: hibernate-ogm-core/src/main/java/org/hibernate/ogm/persister/EntityKeyBuilder.java line 41
By seiyak:

The reason that I took this way was because of `VoldemortDatastoreProvider.getEntityMap` which is called by `org.hibernate.ogm.test.utils.getEntityMap`.

With my modification for `EntityKey`, the constructor additionally requires `columnMap` to keep track of if the column name is different from the property name.`EntityKeyBuilder` builds entity keys and it's `fromPersisterId` method receives `OgmEntityPersister` as a parameter which holds the column names and entity name. These two things are necessary to instantiate `EntityKey` with the constructor. Since `VoldemortDatastoreProvider.getEntityMap` instantiates `EntityKey` during the call, I needed to modify this way.