last question of the weekend (i hope)
this is a bit of thinking out loud, so bear with it.
i have a manager class that does a load... and includes a with_objects
is there a way to have rose return a new object on the load if it
can't get one off the left join?
ie:
if the object is there, i get
parent class(data) -> child class(data)
if the object is not there, i get
parent class(data)
i needed to do a new/blank child class if there is none in the db
( does that make sense ?)
parent class(data)->child class( null )
right now, i'm just looping the parent class with a
has_loaded_related to see if child_class exists , and adding a null
class if its not
i can see where issues can occur-- if the child class has some
foreign keys that it would be too difficult to prepopulate with....
i'm just wondering if anyone has thought about this before.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Rose-db-object mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rose-db-object