db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeffrey D. Brekke" <jbre...@wi.rr.com>
Subject Re: Using views
Date Mon, 12 Mar 2007 17:01:57 GMT
It would be nice to have a readonly="true" attribute at a table level to 
generate a torque om object with no setters.  We've wanted this even 
before the view use case.

Greg Monroe wrote:
> Currently there is no easy way to do this.  One workaround
> if you really need to limit access is to specify the 
> protected="true" option on all columns in the XML.
> 
> If I remember correctly, this should change the set/get
> methods from public to protected.  You can then manually
> override the getter methods as public in the stub classes.


-- 
=====================================================================
Jeffrey D. Brekke                                   jbrekke@wi.rr.com
Wisconsin,  USA                                     brekke@apache.org
                                                     ekkerbj@yahoo.com
http://www.bloglines.com/blog/jbrekke               ekkerbj@gmail.com


---------------------------------------------------------------------
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