Hi Mike,
Thanks for the quick response!
I forgot to mention that I'd like to specify the interface in the model
so the code generator would auto generate the correct stuff for me. For
now I have done as you suggest (adding the interface to the 'concrete'
class). - I think Andrus just answered my question about this... I'll
respond to that post too.
Thanks for the pointer to the velocity stuff. The args put into the
context is exactly what I was wondering about.
Thanks again,
-bd-
On Jun 3, 2004, at 8:42 AM, Mike Kienenberger wrote:
> Bill Dudney <bdudne..ac.com> wrote:
>> I'd like to specify an interface for my Cayenne generated interfaces
>> to
>> implement. Is that possible?
>
> Sure, there's nothing special about defining an interface. I
> generally set
> the interface on my customizable java class. If it's common to all
> classes,
> you could specify it on the superclass.
>
> public class ScheduledPayment extends
> com.gvea.cayenne.ebpp.entity.generated._ScheduledPayment
>
> implements Payment
>
>
>
>> Also, are the values expected in the velocity macros documented
>> anywhere?
>
> I haven't looked at the templates in awhile, but I don't remember any
> macros.
>
> If you're asking what attributes are placed in the context, I think
> "classGen" is the only one, which is an instance of
> org.objectstyle.cayenne.gen.ClassGenerator. You can look at
> http://www.objectstyle.org/cayenne/api/cayenne/org/objectstyle/
> cayenne/gen/ClassGenerator.html
> to see which objects and methods are directly reachable from that
> instance.
>
> -Mike
>
>
This archive was generated by hypermail 2.0.0 : Thu Jun 03 2004 - 10:47:14 EDT