On 12/08/11 4:37 AM, Mike Kienenberger wrote:
2) does it have prototypes?
prototypes being the ability to create a "db type" alias -- ie,
defining a "Boolean" type which might be char[1] or boolean or BIT or
something underneath, so you only have to change the db type in one
place. Or create a money type. This allowed you to switch databases
easily . Umm. I can't remember if Cayenne supports this. I know
you can pick what java type is mapped to a field.
We do something like that in Cayenne. We map a Java class called Money onto a
database bigDecimal. Our class adds additional functionality (keeping cents
rounded, etc). This isn't quite the same as the WO prototype idea, but you can
achieve similar things.
Ari
--
-------------------------->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A