Classes that are immutable for an app?
"Ray Tayek" <[email protected]>
| Newsgroups | gmane.comp.java.ejb.middlegen.user |
|---|---|
| Message-ID | <010101c4106b$183973e0$b4d501cc@STINGRAY> |
Hi, newbie here. I was wondering whether or not it would be worthwhile to have the same class marked as immutable in different apps (by changing the .hbm.xml file for that app after middlegen had reversed a db). For example: most apps that use a po might have to eventually get to an sku item in a table of things that you sold, but a po app would not be able to change that object (or add to that table). Otoh, some other app that mangles the sku's could step on that sku (as well as add sku's to the table). I am reversing a lot of leagacy db's with no foreign keys from mysql 3 into hibernate. This question may belong on the hibernate list, if so, please say so. thanks ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click