• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Hibernate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hibernate


  • Subject: Re: Hibernate
  • From: Anjo Krank <email@hidden>
  • Date: Thu, 26 Feb 2009 07:15:21 +0100


Am 26.02.2009 um 02:50 schrieb Chuck Hill:

Not sure for Anjo ... but one reason I can think of where validation defined in the model is that this means that differing applications using the same model (where the requirements may be slightly different) are restricted to the same rules. Sometimes good though.

That is a good point. Validations seem like something that properly ought to be in the model. Maybe in cases like these, code validations are the way to go? You could always alter the model at load time, though that always seems like obscure hackery to me.

But then again, validation should keep you from - guess what - invalid data out of your DB. So I kinda have a hard time imagining the same model with different requirements. If it has, it's not the same model anymore?


Cheers, Anjo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Hibernate
      • From: Ramon Havermans <email@hidden>
References: 
 >Hibernate (From: Lon Varscsak <email@hidden>)
 >Re: Hibernate (From: Tonny Staunsbrink <email@hidden>)
 >Re: Hibernate (From: Lon Varscsak <email@hidden>)
 >Re: Hibernate (From: Luke Holton <email@hidden>)
 >Re: Hibernate (From: Chuck Hill <email@hidden>)
 >Re: Hibernate (From: Luke Holton <email@hidden>)
 >Re: Hibernate (From: Gustavo Pizano <email@hidden>)
 >Re: Hibernate (From: Oliver Scheel <email@hidden>)
 >Re: Hibernate (From: Karthik N <email@hidden>)
 >Re: Hibernate (From: Mike Schrag <email@hidden>)
 >Re: Hibernate (From: Andrew Lindesay <email@hidden>)
 >Re: Hibernate (From: Mike Schrag <email@hidden>)
 >Re: Hibernate (From: Chuck Hill <email@hidden>)
 >Re: Hibernate (From: Lachlan Deck <email@hidden>)
 >Re: Hibernate (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Hibernate
  • Next by Date: Re: Hibernate
  • Previous by thread: Re: Hibernate
  • Next by thread: Re: Hibernate
  • Index(es):
    • Date
    • Thread