db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Vandahl ...@apache.org>
Subject Re: Define a Foreign Key with a One-to-One mapping
Date Tue, 31 May 2011 19:15:53 GMT
On 31.05.11 20:15, Thomas Fox wrote:
> Then, as you know thatyou have enforced a one-to-one relation on the
> database side, you can refelct this knowledge on the java side by adding
> getters and setters to your java code which map the n side list to a 1 side
> simple getter and setter.

You can order the generator to declare your generated getters and
setters as protected and then expose only those you want to publicly
use. I'm not sure if that works with the collection type getters, however.

Bye, Thomas.

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message