Discussion:
unknown
1970-01-01 00:00:00 UTC
Permalink
</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I run ant hsqldb-gui. I =
connect to
database airlines on my mysql server. 3 tables with persons =
populated.</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I run =
ant.</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp; There is =
a
warning suggesting I set fkcmp to false (as suggested in the mail =
archives)</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp; Ignoring =
this
fkcmp suggestion, I press Generate.</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp; When =
generate
un-greys, I close the gui tool.</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp; There is =
much
activity as xdoclets runs...Build successful</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp; Try to =
deploy the
airlines.ear...I get documented &quot;SQL Error Duplicate Column =
name.&quot;</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>So...</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp; I go =
back to the
build.xml, set fkcmp=3D&quot;false&quot;</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp; run ant. =
There
are several warnings as follows:</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>[middlegen]
(entitybean.CMP20Plugin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;
?&nbsp;&nbsp; ) WARNING: When fkcmp=3D&quot;fals<br>
e&quot;, you will not be able to use compound primary keys where some of =
the
columns<br>
are also foreign keys. This is because all columns of a primary key must =
be CMP<br>
fields. See EJB 2.0. spec section 10.8.2<br>
[middlegen] No &lt;table&gt; elements specified. Reading all tables. =
This might
take a<br>
&nbsp;while...<br>
[middlegen]
(entitybean.Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
?&nbsp;&nbsp; ) WARNING (cmp20): The tabl<br>
e reservations has a primary key where the following columns also are =
foreign
ke<br>
ys: person_id_fk,flight_id_fk. Having set fkcmp=3D&quot;false&quot; this =
will
most likely ca<br>
use problems at run time because those columns will not be persisted, =
and
theref<br>
ore new instances will not set the key fields that correspond to foreign =
keys.
T<br>
he database might choke on this.<br>
[middlegen]
(entitybean.Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
?&nbsp;&nbsp; ) WARNING (cmp20): The tabl<br>
e reservations has a primary key where the following columns also are =
foreign
ke<br>
ys: person_id_fk,flight_id_fk. Having set fkcmp=3D&quot;false&quot; this =
will
most likely ca<br>
use problems at run time because those columns will not be persisted, =
and
theref<br>
ore new instances will not set the key fields that correspond to foreign =
keys.
T<br>
he database might choke on this.<br>
[middlegen]
(entitybean.Entity20Column&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;
?&nbsp;&nbsp; ) WARNING: The cmp20 is con<br>
figured with readonly=3D&quot;true&quot;, but the prefs settings for the =
column
reservations<br>
.flight_id_fk indicates that a local setter for this column should be
generated.<br>
&nbsp;Middlegen will use the prefs setting, so the generated
airline.interfaces.Reser<br>
vationLocal's setFlightIdFk method will exist, causing the bean NOT to =
be read
o<br>
nly.<br>
[middlegen]
(entitybean.Entity20Column&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;
?&nbsp;&nbsp; ) WARNING: The cmp20 is con</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>figured with
readonly=3D&quot;true&quot;, but the prefs settings for the column =
reservations<br>
.reservation_id indicates that a local setter for this column should be
generate<br>
d. Middlegen will use the prefs setting, so the generated
airline.interfaces.Res<br>
ervationLocal's setReservationId method will exist, causing the bean NOT =
to be
r<br>
ead only.<br>
[middlegen]
(entitybean.Entity20Column&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;
?&nbsp;&nbsp; ) WARNING: The cmp20 is con<br>
figured with readonly=3D&quot;true&quot;, but the prefs settings for the =
column
reservations<br>
.person_id_fk indicates that a local setter for this column should be
generated.<br>
&nbsp;Middlegen will use the prefs setting, so the generated
airline.interfaces.Reser<br>
vationLocal's setPersonIdFk method will exist, causing the bean NOT to =
be read
o<br>
nly.<br>
[middlegen] ********************************************************<br>
[middlegen] * CTRL-Click relations to modify their
cardinality&nbsp;&nbsp;&nbsp;&nbsp; *<br>
[middlegen] * SHIFT-Click relations to modify their directionality *<br>
[middlegen] =
********************************************************</span></font></p=
</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp; Again =
press
generate.</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Now I get Build FAILURE =
with the
following javac errors:</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>compile-web:<br>
&nbsp;&nbsp;&nbsp; [javac] Compiling 28 source files to
C:\DEVELO~1\MIDDLE~1\samples\build\clas<br>
ses<br>
&nbsp;&nbsp;&nbsp; [javac]
C:\DEVELO~1\MIDDLE~1\samples\build\gen-src\airline\web\struts\Delete<br>
ReservationAction.java:62: cannot resolve symbol<br>
&nbsp;&nbsp;&nbsp; [javac] symbol&nbsp; : constructor ReservationPK
(java.lang.Integer,java.lang.Int<br>
eger,java.lang.Integer)<br>
&nbsp;&nbsp;&nbsp; [javac] location: class =
airline.interfaces.ReservationPK<br>
&nbsp;&nbsp;&nbsp; [javac]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
airline.interfaces.ReservationPK reservation_PK =3D new airline.<br>
interfaces.ReservationPK(reservationId, personIdFk, flightIdFk);<br>
&nbsp;&nbsp;&nbsp;
[javac]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
^<br>
&nbsp;&nbsp;&nbsp; [javac]
C:\DEVELO~1\MIDDLE~1\samples\build\gen-src\airline\web\struts\EditRe<br>
servationAction.java:65: cannot resolve symbol<br>
&nbsp;&nbsp;&nbsp; [javac] symbol&nbsp; : constructor ReservationPK
(java.lang.Integer,java.lang.Int<br>
eger,java.lang.Integer)<br>
&nbsp;&nbsp;&nbsp; [javac] location: class =
airline.interfaces.ReservationPK<br>
&nbsp;&nbsp;&nbsp; [javac]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
airline.interfaces.ReservationPK reservation_PK =3D new airline.<br>
interfaces.ReservationPK(reservationId, personIdFk, flightIdFk);<br>
&nbsp;&nbsp;&nbsp;
[javac]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
^<br>
&nbsp;&nbsp;&nbsp; [javac]
C:\DEVELO~1\MIDDLE~1\samples\build\gen-src\airline\web\struts\Reserv<br>
ationForm.java:156: cannot resolve symbol<br>
&nbsp;&nbsp;&nbsp; [javac] symbol&nbsp; : method getPersonIdFk ()<br>
&nbsp;&nbsp;&nbsp; [javac] location: interface
airline.interfaces.ReservationLocal<br>
&nbsp;&nbsp;&nbsp; [javac]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
setPersonIdFk(reservation.getPersonIdFk());<br>
&nbsp;&nbsp;&nbsp;
[javac]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
^</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>...and so =
on...</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I have tried &quot;ant =
clean&quot;
between steps, even re-downloading from cvs =
(today:2003-03-11).</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Did I miss something in the
instructions or the mail archive? Either I cannot deploy or I cannot =
compile.
Any direction would be very much appreciated.</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Steve</span></font></p>

</div>

</div>

</body>

</html>
=00
------_=_NextPart_001_01C2E987.EACB77A8--

Loading...