Re: [Rife-users] How to build a parent set using null and beans?

2006-07-14 Thread Tyler Pitchford
LOL. Can't believe I didn't think of that. I really shouldn't work on projects at night after I've worked a 14 hour day. As always thank you. Cheers, Tyler On 7/14/06, Geert Bevin [EMAIL PROTECTED] wrote: Why don't you use Integer as a type instead of int, then you can use null? On 14 Jul

[Rife-users] How to build a parent set using null and beans?

2006-07-13 Thread Tyler Pitchford
I'm trying to figure out the best way to handle comments in a table, when I want the top comment to be the parentId. Should I restructure the DB to make all Comments and Articles - Posts with a type field? At that point, the top parentId for nesting the comments would be the ArticleId itself.

Re: [Rife-users] How to build a parent set using null and beans?

2006-07-13 Thread Geert Bevin
Why don't you use Integer as a type instead of int, then you can use null? On 14 Jul 2006, at 05:33, Tyler Pitchford wrote: I'm trying to figure out the best way to handle comments in a table, when I want the top comment to be the parentId. Should I restructure the DB to make all Comments