开发者

How do you deal with composite pattern when using hibernate and domain-driven design?

开发者 https://www.devze.com 2022-12-11 18:07 出处:网络
Does hibernate has support for hierarchical data in a database where you use a pa开发者_如何学CrentId

Does hibernate has support for hierarchical data in a database where

  • you use a pa开发者_如何学CrentId
  • you use a parentId and an orderId
  • you use Modified Preorder Tree Traversal


Hibernate supports Modified Preorder Tree Traversal in that lets you define the left/right properties. It does not support hierarchic queries however, but it's pretty trivial to re-hierarchize objects out of linear query if you order that by left value.


Just found that the feature is in-progress

http://opensource.atlassian.com/projects/hibernate/browse/HHH-1395

0

精彩评论

暂无评论...
验证码 换一张
取 消