Bill, I know all of that. The problem being they are in different schemas. I want to use TarArticleLanguage in schema A as an alias of TarAdminLanguage which resides in schema B in order to take advantage of Torque and all its bunch of useful functions. This is quite similar to extending "User", in the sens that I have to create the retrieveByPk functions. On the other hand, the retrieveByPk functions do not exist in TurbineUser which is why there's no overloading problems.
I must be doing something wrong in there but I cannot see what. Any help ? Emmanuel. -----Original Message----- From: Bill Schneider [mailto:[EMAIL PROTECTED]] Sent: 20 March 2002 05:16 To: Turbine Users List Subject: Re: Torque: Access an external table Java doesn't let you overload the same method name with different return types. Anyhow, it seems like TarArticleLanguage and TarAdminLanguage are really the same data abstraction (originating from the same table) so it might not make sense for them to be different Java classes in the first place. --Bill ----- Original Message ----- From: "Emmanuel Bardet" <[EMAIL PROTECTED]> To: "Turbine Users List" <[EMAIL PROTECTED]> Sent: Tuesday, March 19, 2002 4:07 PM Subject: RE: Torque: Access an external table > Hello gents, > > I really need your help. > > How can I implement a requested function > > public static TarArticleLanguage retrieveByPK( ObjectKey pk ) > > in class TarArticleLanguagePeer where it already exists with a different > signature > > public static TarAdminLanguage retrieveByPK( ObjectKey pk ) > > in a Torque generated class BaseTarAdminLanguagePeer ? > > For info, > BaseTarAdminLanguagePeer > | > TarAdminLanguagePeer > | > BaseTarArticleLanguagePeer > | > TarArticleLanguagePeer > > Thanks for any help you might give. > > Emmanuel. > > -----Original Message----- > From: Emmanuel Bardet [mailto:[EMAIL PROTECTED]] > Sent: 19 March 2002 17:26 > To: Turbine Users List > Subject: Torque: Access an external table > > > Hello all, > > I try to create an object to access a table whic resides in another schema. > Thus, I created an entry in my schema as following. > > <table name="TAR_ARTICLE_LANGUAGE" alias="TAR_ADMIN_LANGUAGE" > baseClass="com.tar.admin.om.TarAdminLanguage" > basePeer="com.tar.admin.om.TarAdminLanguagePeer" > > > This worked fine up to the point where I add the retrieveByPK functions for > which I get compilations errors i.e.: > > TarArticleLanguagePeer.java [34] > retrieveByPK(org.apache.turbine.om.ObjectKey) in > com.tousauregime.article.om.TarArticleLanguagePeer cannot override > retrieveByPK(org.apache.turbine.om.ObjectKey) in > com.tar.admin.om.BaseTarAdminLanguagePeer; attempting to use incompatible > return type > found : com.tar.article.om.TarArticleLanguage > required: com.tar.admin.om.TarAdminLanguage > public static TarArticleLanguage retrieveByPK( ObjectKey pk ) > ^ > Any help would be appreciated. > > Thanks. > > Emmanuel. > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
