A question about a newcomer to Hibernate ... in the context of an article by Martin Fowler

In Domain Logic and SQL, Martin Fowler talks about three styles of interacting with a database:

  • Transaction Script
  • Domain model and
  • Logic in SQL

What I would like to know:

  • When using Hibernate for perseverance, which of these three styles is commonly used and / or promoted?
  • Is there any 4th style when using hibernate?

(In the Hibernate context, replace HQL instead of SQL above.)

Many thanks...

+3
source share
1 answer

You typically use O / R-mappers, such as Hibernate, with a domain model.


EDIT:

, # 2, .
, Hibernate, NHibernate ( .net Hibernate). Hibernate, .
Hibernate NHibernate, , , , , .

, ​​ 2003 (7.5 !), O/R, (N) Hibernate, , .

+1

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


All Articles