How value objects are saving and loading?
Posted
by
yeraycaballero
on Stack Overflow
See other posts from Stack Overflow
or by yeraycaballero
Published on 2010-02-16T23:27:31Z
Indexed on
2012/12/03
5:05 UTC
Read the original article
Hit count: 176
Since there isn't respositories for value objects. How can I load all value objects?
Suppose we are modeling a blog application and we have this classes:
- Post (Entity)
- Comment (Value object)
- Tag (Value object)
- PostsRespository (Respository)
I Know that when I save a new post, its tags are saving with it in the same table. But how could I load all tags of all posts. Has PostsRespository got a method to load all tags? I usually do it, but I want to know others opinions
© Stack Overflow or respective owner