SCJP2<br />BEA Certified J2EE Developer
If you are not laughing at yourself, then you just didn't get the joke.
If you are not laughing at yourself, then you just didn't get the joke.
Originally posted by pascal betz:
Component ? Why make a component out of this ? How do you ensure uniqueness in DB then ?
pascal
If you are not laughing at yourself, then you just didn't get the joke.
If two objects in the set have the same MyUniqueClass component won't hibernate throw an error, before even hitting the DB ?
If you are not laughing at yourself, then you just didn't get the joke.
Originally posted by pascal betz:
Hibernate could check not-null constraints but it CAN NOT check the constraints because it does not know all the data...
How should Hibernate be able to check a unique constraint without checking the DB ? it would need to keep all the data in memory! It is not the job of hibernate that is what the DB is good for.
pascal
If you are not laughing at yourself, then you just didn't get the joke.
Consider Paul's rocket mass heater. |