|
Re: Primitives or not (Was: Torque 4.0 plan): msg#00007jakarta.turbine.torque.devel
Greg Monroe wrote: > On the record side of things, I can't see that it's > a big problem to keep supporting the primitive XML > option. Let the application designer decided whether > to use primitive or objects via this. It's only a > VERY small set of template code that's required to > create primitive getter/setters. Everything internally > can be object or not. I don't think so. As Torque works now, you can define a column to be a primitive (int) and Nullable at the same time. In Torque you have no way to decide whether this column is null or 0 (which is what Torque sets). Objects can really be null and so you can distinguish between the two cases. So this is the much cleaner approach. The other way round, you won't be able to store null in such a table, simply because the primitive value cannot be null. Bye, Thomas. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Base Object / Record Object Design ( Was: Torque 4.0 plan ): 00007, Greg Monroe |
|---|---|
| Next by Date: | Re: Non-record type queries/ statements ( Was: Torque 4.0 plan): 00007, Thomas Vandahl |
| Previous by Thread: | Primitives or not (Was: Torque 4.0 plan)i: 00007, Greg Monroe |
| Next by Thread: | Re: Primitives or not: 00007, Thomas Fischer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |