Does Fluent-Hibernate exist?

后端 未结 3 1321
刺人心
刺人心 2021-02-14 16:33

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

相关标签:
3条回答
  • 2021-02-14 16:59

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

    0 讨论(0)
  • 2021-02-14 17:01

    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.

    0 讨论(0)
  • 2021-02-14 17:02

    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.

    0 讨论(0)
提交回复
热议问题