How smart is Hibernate transforming JDBC tuples to Java Objects


#1

Hi, I did that question on stackoverflow … the answer that I received was to test my hypothesis; however, I have no clue to do that (for me, it seems more like to see the hibernate code, but I don’t know where to look at)…

If the question is not clear enough, let me know …

Thanks.


#2

Hibernate ORM actually supports multiple different strategies, depending on configuration, mapping and which tools you used - so your question is a bit vague.

I could say it’s “quite smart” in the sense that multiple smart people have tried to make it better over the years, but of course there’s always room for improvement.

What would you like to know? You should probably checkout the source code, no secrets :slight_smile:

I’d suggest starting to read org.hibernate.tuple.entity.EntityTuplizer , and see which classes implement it and which classes invoke it.