Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Fluent-Hibernate exist?

Is there something like Fluent-NHibernate for the original Java Hibernate? If not, why not? Are there any language-specific limitations?

like image 603
Marc Wittke Avatar asked Oct 20 '09 05:10

Marc Wittke


2 Answers

I believe Fluent-NHibernate relies on the nice features provided by Linq in C#3.0 if I'm not mistaken. Until Java implements lambda expressions etc I don't think we'll see Fluent Hibernate.

I could be wrong though. :)

like image 178
mezoid Avatar answered Oct 12 '22 11:10

mezoid


Groovy supports lambda expressions (although they rather confusingly call them closures), and Groovy classes are directly accessible from Java. Perhaps the mappings for Java apps could be written in Groovy.

Just a thought.

like image 42
Michael S. Kelly Avatar answered Oct 12 '22 12:10

Michael S. Kelly