Is there something like Fluent-NHibernate for the original Java Hibernate? If not, why not? Are there any language-specific limitations?
相关问题
- How does the JPA handle partial, non-disjoint inhe
- Tell hibernate hbm2ddl not create individual table
- Should there be an EntityManager per thread in Spr
- Hibernate and multiThread Logic
- Why does Hibernate perform a JNDI lookup?
相关文章
- Hibernate Tutorial - Where to put Mapping File?
- Hibernate doesn't generate cascade
- Fluent NHibernate — Saving Entity with Composite K
- Setup and Tear Down of Complex Database State With
- Is this the right way of using ThenFetch() to load
- Can Persistence Ignorance Scale?
- How to map an abstract collection with jpa?
- Two foreign keys as primary key
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.
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.
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. :)