I want to something real simple.  I just want extend then use a custom
version of an ID broker.  

Basically, all I want to do is to append the table name to plus and "@" sign
to the beginning of an autogenerated key (String only, obviously) like so:
Extend org.apache.turbine.util.db.IDBroker then override getIdAsString

String getIdAsString(Connection connection, Object tableName)
{
        return tableName+"@"+(getIdAsBigDecimal(null,
tableName).toString());   
}

This will, theoretically, create system-wide, unique ID for this row.  

Okay, that was the simple part.  The part I'm missing is how to convince
Turbine to use my ID Broker Class instead of the default one.  

Any clues?

Thanks,
Scott

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

Reply via email to