In response to:
http://objectstyle.org/cayenne/lists/cayenne-devel/2007/12/0148.html
I wanted to add a few notes on my objective when
adding the contents to the wiki. There were two
topics: (1) the key generation topic, and (2) the
attribute mappings.
(1) I added these notes to make mention of how to
handle key generation when this action is not handled
by the database, and without changes to the database.
So in my case, we wanted to increment the max for each
additional entry to the table (pretty basic). So in
order to tell the new entry to the table its id, I
needed to set its ObjectId with one that I came up
with. All seemed to work well. In a threaded
environment, I think this would work since the select
and addition are all part of the same transaction on
the database. I added this because I didn't see how to
do this in any of the available documentation.
http://cwiki.apache.org/confluence/pages/viewpage.action?pageId=73153
(2) I needed to handle getting the property name of a
column in a table in the Java class by only knowing
the field and table names (the physical database).
Since I wouldn't always know how every field might map
to a property name, I entered the looping to do a
match and then pull the property value with the
mapping.
http://cwiki.apache.org/confluence/pages/viewpage.action?pageId=73154
My apologizes for not placing these topics on the
correct pages of the wiki. I wasn't sure where they
might of fit, so I took a shot. Andrus mentioned maybe
on the FAQ pages.
Andrus also mentioned that the implementation was
controversial. Could anyone explain this more, and
expand on public ObjectId.getReplacementIdMap() beyond
the Javadoc.
Thanks.
Terrence A. Pietrondi
http://del.icio.us/tepietrondi
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
This archive was generated by hypermail 2.0.0 : Sat Dec 22 2007 - 14:08:17 EST