This content has been marked as final.
Show 5 replies
-
1. Re: Using Home Objects in Action Beans
sandman202 Jun 12, 2008 2:02 AM (in response to sandman202)I realized on my way home I could set the default values for these in the constructor on the entity.
-
2. Re: Using Home Objects in Action Beans
damianharvey.damianharvey.gmail.com Jun 12, 2008 10:33 AM (in response to sandman202)Or you can just set them in the Home Bean by overriding either createInstance() or create() depending on your use case.
Cheers,
Damian.
-
3. Re: Using Home Objects in Action Beans
sandman202 Jun 12, 2008 2:50 PM (in response to sandman202)I guess you didn't read my post, because I originally had the defaults in the Home Object (see code included). I am wanting to create an action bean where I could use multiple home objects, since that is where the default settings are defined.
The action bean will be adding one to many records for each home object I use.
I started making changes last night to move the defaults to the entity under the constructor.
-
4. Re: Using Home Objects in Action Beans
damianharvey.damianharvey.gmail.com Jun 12, 2008 4:19 PM (in response to sandman202)Guilty as charged. I'm a serial skimmer.
Apologies.
Damian.
-
5. Re: Using Home Objects in Action Beans
sandman202 Jun 12, 2008 4:29 PM (in response to sandman202)No problem.