Hibernate Books

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: The Category Class
PostPosted: Sun Sep 19, 2004 5:45 pm 
Regular
Regular

Joined: Wed Aug 25, 2004 7:40 pm
Posts: 65
Unlike any other classes in the CaveatEmptor, the category class is relative static during the course of the service. I think the data should be a part of system configuration, but not interface to a user, even those with administrator role. Any reasons it is presented in the fashion? I might miss something in this regard.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 19, 2004 5:54 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
I've no idea what you say :)

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 19, 2004 8:42 pm 
Regular
Regular

Joined: Wed Aug 25, 2004 7:40 pm
Posts: 65
christian wrote:
I've no idea what you say :)


What I try to say are followings:

1) Among of all class definitions, the User, Customer, Bid, BidDetails can be created, altered, deleted during the course of the application service.

2) The category is a pre-defined system level data. It is a read-only data for all users. It shoull not be created, changed, or deleted by any users under the normal circumstance.

I am curious about the existence of the findByExample, makePersistent, and makeTransient methods in the DAO class based on the above two points.


Hope I clarify myself this time.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 29, 2004 3:36 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Well, the Category can be changed in my application, so I need that DAO. I've no idea why I shouldn't modify item categories in an auction system, its a perfectly valid case.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.