hibernate/hibernate-ogm — pull request #91 by seiyak (2012-05-23 15:54:10+00:00)
Title: OGM-181 Rework EntityKeyBuilder (Remove a method called 'getColumnMap')

Hi,

I'm not sure if I should do a pull request for this since it's a sub-task of `OGM-123 Add Voldemort datastore`, created by me and assigned to myself but this task is important for Voldemort and hopefully other datastore providers as well. I'll close the request if you think that is not relevant.

To make Voldemort work with `hibernate-ogm`, I used a method called `getColumnMap` which calls ` persister.getPropertyColumnNames( propName )[0]` internally to get property and column name mapping. As mentioned in line comment, it doesn't have to be there and it doesn't work as the relationship works.

However, getting the correct type of properties through their names or column names is necessary to deserialize values in the tuple with the correct type. Without the correct types, an exception is thrown. Instead of doing so previously in `EntityKeyBuilder`, I added a class called `AnnotationFinder` to solve the issue and also other tasks related to annotations as well.

Thank you
Seiya