Seems like there is an issue with tables with foreign keys. I ran ant init on
successfully until I added following tables with foreign key to other tables. Once I
add these I can't do a successful ant init.
Can anyone guide. Is it because I should be using Maven or ant works just fine with
Turbine 2.3 (using tdk-2.3-20030905.tar.tar)
<table name="TURBINE_ROLE_PERMISSION">
<column name="ROLE_ID" required="true" primaryKey="true" type="INTEGER"/>
<column name="PERMISSION_ID" required="true" primaryKey="true" type="INTEGER"/>
<foreign-key foreignTable="MYAPP_ROLE">
<reference local="ROLE_ID" foreign="ROLE_ID"/>
</foreign-key>
<foreign-key foreignTable="MYAPP_PERMISSION">
<reference local="PERMISSION_ID" foreign="PERMISSION_ID"/>
</foreign-key>
</table>
<table name="TURBINE_USER_GROUP_ROLE">
<column name="USER_ID" required="true" primaryKey="true" type="INTEGER"/>
<column name="GROUP_ID" required="true" primaryKey="true" type="INTEGER"/>
<column name="ROLE_ID" required="true" primaryKey="true" type="INTEGER"/>
<foreign-key foreignTable="MEMBER">
<reference local="USER_ID" foreign="USER_ID"/>
</foreign-key>
<foreign-key foreignTable="MYAPP_GROUP">
<reference local="GROUP_ID" foreign="GROUP_ID"/>
</foreign-key>
<foreign-key foreignTable="MYAPP_ROLE">
<reference local="ROLE_ID" foreign="ROLE_ID"/>
</foreign-key>
</table>
<
Deepak
Lo�c QUERAN <[EMAIL PROTECTED]> wrote:
Hi,
I added the following in the ExtendedUser class :
"
package org.mycompany.security.om;
import org.apache.torque.om.Persistent;
import org.apache.turbine.services.security.torque.TorqueUser;
"
A second error appears at compile time with TDK-2.3 if you have removed
servlet.jar from WEB-INF/lib. Take it back from $TDK_HOME/tdk/lib until you
have successfully run ant init, then delete it again to avoid the validateJar
problem.
Lo�c
On Wednesday 15 October 2003 06:13 pm, Deepak wrote:
> Hi All,
>
> I am following instructions on extending turbine 2.3 user at following url
>
> http://jakarta.apache.org/turbine/turbine-2.3/services/torque-security-serv
>ice.html
>
> I can't seem to be able to compile similar code as follows and I am getting
> "cannot resolve symbol" at getPersistentObj.
>
> Any help is appreciated.
>
> Deepak
>
> import org.apache.turbine.services.security.torque.TorqueUser;
>
> public class ExtendedUser extends TorqueUser
> {
> public ExtendedUser()
> {
> super();
> }
>
> public ExtendedUser(Persistent obj)
> {
> super(obj);
> }
>
> public String getPhone()
> {
> return ((CustomUser) getPersistentObj()).getPhone();
> }
>
> public void setPhone(String phone)
> {
> ((CustomUser) getPersistentObj()).setPhone(phone);
> }
>
> public String getFax()
> {
> return ((CustomUser) getPersistentObj()).getFax();
> }
>
> public void setFax(String fax)
> {
> ((CustomUser) getPersistentObj()).setFax(fax);
> }
> }
>
>
>
> ---------------------------------
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
--
Lo�c QUERAN
GICM
32 Rue Mirabeau 29 480 LE RELECQ KERHUON
T�l�phone : 02.98.00.23.39
Mobile : 06.74.40.59.37
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search