How DAAB can be used to fill list of custom objects ?
I am curious if a custom object ( for example User) composes an enum (for example
UserType which can have values admin or member); than how object (User) will be filled if null is coming as value for enum (UserType) ?
Member
156 Points
439 Posts
how to fill list of objects with DAAB ?
May 22, 2010 03:54 AM|Haansi|LINK
Hello,
Thanks for your attention, time and sharing.
How DAAB can be used to fill list of custom objects ?
I am curious if a custom object ( for example User) composes an enum (for example UserType which can have values admin or member); than how object (User) will be filled if null is coming as value for enum (UserType) ?
Please guide me on this issue.
thanks in anticipation
Best Regards,
Haansi
Participant
1670 Points
400 Posts
Re: how to fill list of objects with DAAB ?
May 25, 2010 12:56 AM|Vinija|LINK
DAAB can be used but you have to write your conversion code.
For example: Your UserType enum , you ahve to check for null on your field, and set your default value, otherwise
you'll have an InvalidCastException
Blog