These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: To DAO or not to DAO
PostPosted: Wed Nov 28, 2007 7:05 am 
Newbie

Joined: Wed Nov 28, 2007 6:53 am
Posts: 4
Hello everyone,

We are developing an Architecture. We are using WCF, NHibernate and coding using entities, not pure classes.

In this scenario I don't think that DAO should be good for us when sending an Entity, I could use it for grouping entities or making my own messages, but 90% of the time I will be sending entities, and I do not think that mapping exactly the same to DAO.

the problem here is when the entity I want to send is related with other entities. I do not want to send the related (I know about lazy, but think that I have loaded its relations), just the one for I am asking for.

What do you think?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 28, 2007 8:31 am 
Beginner
Beginner

Joined: Mon Oct 22, 2007 5:44 am
Posts: 28
Hi,

I'm sorry but the question isn't clear enough.
Please try to rephrase it and I'll try to help.

You can also add an example...

_________________
dyahav


Top
 Profile  
 
 Post subject: To DAO or not to DAO
PostPosted: Wed Nov 28, 2007 9:04 am 
Newbie

Joined: Wed Nov 28, 2007 6:53 am
Posts: 4
I would like to send just an entity, not the related objects.

If I have a entity Person related with works I just want to send the Person to the client.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.