On Mar 22, 2004, at 11:42 AM, Mike Kienenberger wrote:
> Andrus Adamchik <andru..bjectstyle.org> wrote:
>> No, actually there is no formal DTD checking.
>>
>> What information are you losing during upgrade? Can you do a diff on
>> pre- and post-upgrade project files?
>>
>> I can suggest one upgrade trick - manually set/change "version"
>> attribute in all XML files to 1.1, then CayenneModeler will not
>> attempt
>> to "upgrade". However this shouldn't make much difference.
>
> I'm losing all of the obj-entity "lock-type", obj-attribute "lock", and
> obj-relationship "lock" attributes I had manually defined.
>
> -Mike
>
You will need the very latest modeler, since I checked in all the
relevant code around midnight yesterday (this snapshot -
http://objectstyle.org/downloads/cayenne/cvs-snapshots/cayenne-cvs-
snapshot-2004-3-22-0301.tar.gz - or the latest nightly build is
required). Her is a little test DataMap that has locking attributes and
works just fine with the new modeler.
Andrus
<?xml version="1.0" encoding="utf-8"?>
<data-map project-version="1.1">
<db-entity name="UntitledDbEntity">
</db-entity>
<db-entity name="UntitledDbEntity1">
</db-entity>
<obj-entity name="UntitledObjEntity" className="Baby"
dbEntityName="UntitledDbEntity">
<obj-attribute name="antitledAttr" type="java.lang.Byte" lock="true"/>
<obj-attribute name="untitledAttr"/>
</obj-entity>
<obj-entity name="UntitledObjEntity1"
superEntityName="UntitledObjEntity" className="EEE"
lock-type="optimistic">
<obj-attribute name="x1"/>
<obj-attribute name="x2"/>
</obj-entity>
<obj-entity name="UntitledObjEntity2"
superEntityName="UntitledObjEntity1" className="ZZZ">
</obj-entity>
<obj-relationship name="untitledRel" source="UntitledObjEntity"
lock="true">
</obj-relationship>
<obj-relationship name="untitledRel1" source="UntitledObjEntity">
</obj-relationship>
<obj-relationship name="untitledRel2" source="UntitledObjEntity1"
lock="true">
</obj-relationship>
</data-map>
This archive was generated by hypermail 2.0.0 : Mon Mar 22 2004 - 12:41:08 EST