I tried to regenerate the model via torque as I saw in the other discussion
about Users.
My issue is that I want to use another table name that already exists in
other webapps, with columns that already exists also (with other name, as
LOGIN_NAME in jetspeed becomes ID in my webapp)

Here are my changes to security-schema.xml :

  <!--<table name="TURBINE_USER" idMethod="idbroker"> ** Changed -->
  <table name="WEBAPP_USER" idMethod="idbroker">
    <column name="USER_ID" required="true" primaryKey="true"
type="INTEGER"/>
    <!--<column name="LOGIN_NAME" required="true" size="32" type="VARCHAR"/>
** Changed -->
    <column name="ID" required="true" size="32" type="VARCHAR"/>
    <!--<column name="PASSWORD_VALUE" required="true" size="32"
type="VARCHAR"/> ** Changed -->
    <column name="PWD" required="true" size="32" type="VARCHAR"/>
    <column name="FIRST_NAME" required="true" size="99" type="VARCHAR"/>
    <column name="LAST_NAME" required="true" size="99" type="VARCHAR"/>
    <!--<column name="EMAIL" size="99" type="VARCHAR"/> Changed -->
    <column name="COL_EMAIL" size="99" type="VARCHAR"/>
    <column name="CONFIRM_VALUE" size="99" type="VARCHAR"/>
    <column name="MODIFIED" type="TIMESTAMP"/>
    <column name="CREATED" type="TIMESTAMP"/>
    <column name="LAST_LOGIN" type="TIMESTAMP"/>
         <column name="DISABLED" size="1" type="CHAR"/>
    <column name="OBJECTDATA" type="VARBINARY"/>

    <unique>
        <!--<unique-column name="LOGIN_NAME"/>-->
        <unique-column name="ID"/>
    </unique>

  </table>

and also
    <!--<foreign-key foreignTable="TURBINE_USER" onDelete="cascade"> **
Changed -->
    <foreign-key foreignTable="WEBAPP_USER" onDelete="cascade">
      <reference local="USER_ID" foreign="USER_ID"/>
    </foreign-key>

I changed the build.properties :
targetPackage=com.myapp.jetspeed.om.security.turbine

I ran the build.bat, it goes ok for project-om then I have exceptions :
    [javac] Compiling 487 source files to
C:\dev\Jetspeed\1.4b1\jetspeed-1.4b1-r
elease-src\bin\classes
    [javac]
C:\dev\Jetspeed\1.4b1\jetspeed-1.4b1-release-src\src\java\org\apache
\jetspeed\om\security\turbine\TurbineGroup.java:17: cannot resolve symbol
    [javac] symbol  : class BaseTurbineGroup
    [javac] location: package turbine
    [javac]     extends
org.apache.jetspeed.om.security.turbine.BaseTurbineGroup

And lots of other.
But I have the security package done : 25 classes in security.turbine, 6 in
security.turbine.map

Then I saw the HowTo, it explains perfectly what to do when you want to
extend the current BaseJetspeedUser, to add "age" for example, but I'm
totally lost in my case : I just want Jetspeed to use my table name and my
columns instead of its.

What to do then ? I don't understand how Jetspeed will use the newly package
generated by Torque...

I'm new to building Jetspeed, I don't really like this (looks too much like
a hack to me), but I really need this feature.
Thanks for help,
Aurelien


> De : Elena [mailto:[EMAIL PROTECTED]]
>
>
> Hi,
> Read the mailing list 2/3 days back.
> You will get the answers.
> Elena.
> PS. if you still have problem write again.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to