-->
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.  [ 1 post ] 
Author Message
 Post subject: Trouble getting started
PostPosted: Thu Mar 19, 2009 12:14 am 
Newbie

Joined: Thu Mar 19, 2009 12:11 am
Posts: 7
I have spent the past two weeks doing research on the best
implementation for a school project. We are creating a Calendar/
ToDoList/Academics tracker customized to our institution. We chose to
make a C# WinForms application using NHibernate to maintain
persistency with a database.

We are having trouble implementing a 3 tiered application and getting
confused using OOP vs. Repositories. Currently, after authentication,
the database is queried and a static User object is created which
contains a list of groups, events, and tasks. However, when I try to
display the items in separate GUI forms, the references are null. I
think this is related to lazy loading, but I don't know.

I have a feeling that my static user object is not the right idea. I
am starting to think to not maintain any stale objects, and to use a
repository for each display and use Refresh() to keep the data
persistent. Am I on the right track with this thinking? Where do I
store the authenticated user information? And how to I pass that to
each repository to only retrieve data pertinent to the user?

Any guidance you all could provide would greatly help a struggling
student.

Thanks


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

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.