You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Kai Porter <a0...@hotmail.com> on 2002/07/27 22:28:54 UTC

Errors "extending" user

I'm getting some odd errors when using the method that Diederik describes 
here:
http://www.mail-archive.com/turbine-user@jakarta.apache.org/msg07569.html

Snippets from the schema are here and the actual errors are below. I know 
this method should work as I have had success in the past. However, I am 
stumped as to why it won't work here.

Maybe some extra eyeballs are needed ...

Thanks in advance for any help

//Vital stats
	tdk version = 2.1
	-- also tried --
	tdk version = 2.2.b2
        jdk = 1.3.1_04

//Added to my schema

  <table name="SYSTEM_USER"
  	javaName="SystemUser"
	alias="TurbineUser"
	primaryKey="true"
	baseClass="org.apache.turbine.om.security.TurbineUser"
	basePeer="org.apache.turbine.om.security.peer.TurbineUserPeer">
	<column name="USER_ID" primaryKey="true" required="true" type="INTEGER"/>
  </table>

  <table name="CATALOG_USER" idMethod="native">
  	<column name="RECORD_ID" required="true" autoIncrement="true" 
primaryKey="true" type="INTEGER" />
	<column name="USER_ID" required="true" primaryKey="true" type="INTEGER" />
	<column name="USER_TYPE" size="255" type="INTEGER" />
	...
	...
  </table>
	<foreign-key foreignTable="SYSTEM_USER">
		<reference local="USER_ID" foreign="USER_ID" />
	</foreign-key>

  //Leaving out definition of the baseClass and BasePeer yields compile 
errors as TurbineUser is not found.


//Returns the following errors

[project]\om\BaseCatalogUser.java:552: cannot resolve symbol
symbol  : method getUserId  ()
location: class com.linternet.basket.om.SystemUser
            setUserId(v.getUserId());
                       ^
[project]\om\BaseCatalogUser.java:561: cannot resolve symbol
symbol  : method retrieveByPK  (org.apache.turbine.om.NumberKey)
location: class com.linternet.basket.om.SystemUserPeer
             aSystemUser = SystemUserPeer.retrieveByPK(this.user_id);

                                         ^
[project]\om\BaseSystemUser.java:115: cannot resolve symbol
symbol  : method getUserId  ()
location: class com.linternet.basket.om.BaseSystemUser
                    criteria.add(CatalogUserPeer.USER_ID, getUserId() );
                                                          ^
[project]\om\BaseSystemUser.java:137: cannot resolve symbol
symbol  : method getUserId  ()
location: class com.linternet.basket.om.BaseSystemUser
                    criteria.add(CatalogUserPeer.USER_ID, getUserId() );

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>