Does Fluent-Hibernate exist?

谁说胖子不能爱 提交于 2019-12-21 03:56:06

问题


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


回答1:


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. :)




回答2:


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.




回答3:


Scala supports lambda's, right (I'm totally Scala newbie). And it is completely inter-operable with Java at the static compilation level. It seems like Scala+Hibernate would enable fluent on the Java side.



来源:https://stackoverflow.com/questions/1592575/does-fluent-hibernate-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!