Hi Andrus,
thanks for the sample code.
Sorry for my stupid question :-D... yes.. i try to generate datamap on the
fly via servlet.
About point 2... i noticed (in the sample) that datamap xml file (obj-entity)
hasn't "className" attribute. So.. i think this is the main difference from
the "normal" datamap file and the one required for my scope. Is it the only
one... or i must take care about other differences?
Thanks again for you support.
D.
On 7/8/07, Andrus Adamchik <andru..bjectstyle.org> wrote:
>
>
> On Jul 8, 2007, at 2:10 PM, mr.abanjo wrote:
>
> > Hi Andrus,
> > few further questions for you:
> >
> > 1) The web page "
> > http://cayenne.apache.org/doc20/generic-persistent-class.html" has
> > a link to
> > a sample code.. but it desn't work. A sample,is for me, a great
> > help for
> > speed up my work. Is possible to have it?
>
> Good catch, here is the correct link:
>
> http://cwiki.apache.org/CAY/generic-dataobjects-example.html
>
>
> > 2) The datamap xml file, that should map java object to database
> > object, is
> > still required? I usually write in it, the package and the name of the
> > concrete class..
>
> Isn't it what you were going to generate via a servlet dynamically?
> Of course whatever the servlet generates has to look no different
> from what the modeler would generate, so yes - entries for obj-
> entities and db-entities are required.
>
>
> > 3) If the datamap xml file is no more required, how Cayenne know which
> > table are connected to my java classes, how it knows which is the
> > primary
> > key.. ecc...?
>
> It doesn't, see above.
>
> Andrus
>
This archive was generated by hypermail 2.0.0 : Sun Jul 08 2007 - 12:17:41 EDT