Does NHibernate support interaction with Hibernate? If not, is there an environment for Java and .NET?

Say what you had:

  • database
  • a set of programs for Windows.NET.
  • a bunch of java web applications

You could use Hibernate for Java materials and NHibernate for .NET materials, but could they interact with each other or would they be completely different stacks?

If not, is there a permanent structure that allows the joint business logic of Java and .NET?

+1
source share
2 answers

I canโ€™t speak for Java people, but on the .NET side of things, I believe that mapping files can be split (xml files describing the relationship between the database and objects).

Other than that, what would you like to share? Do you think about business logic? Please define "share logic" a little further.

You could have your Java people write the persistence code and display it as RESTful services, then .NET Windows GUI programmers could just code it ... or vice versa.

Ultimately, there shouldn't be much Hibernate / nHibernate code, since for it you no longer need to write such a data access code. All that remains is the application logic with minimal interaction with (n) Hibernate, which will differ depending on your language.

+3
source

I believe not. nHibernate accepts Hibernate as a reference, but in reality they do not share the code and do not develop at a different pace. You must know the limitations of both.

0
source

Source: https://habr.com/ru/post/896575/


All Articles