ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Chew <chew.a...@gmail.com>
Subject Re: how can i get attribute from inbed object?
Date Fri, 02 Dec 2005 04:30:54 GMT
Hi, Dave
   #format.id# and #projection.name# can work well if you has private
attribute and public accessors.  please pay attention to your accessors, it
must be realized in most simple way,without any actions except set and
return,just like this:
   private Object attribute;
   public void setAttribute(Object attr)
   {
      this.attribute = attr;
   }

   public Object getAttribute()
   {
     return this.attribute;
   }

I have no experience with something like box3d('BOX3D($bounds.minX$
$bounds.minY$, $bounds.maxX$,$bounds.maxY$)') ,it seems like there is
another query. why not try this out of SQL map? then you can calculate bounds
and treat it as a simple attribute.

Regards
alex

Mime
View raw message