You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Zamek <za...@vili.pmmf.hu> on 2003/06/23 12:20:21 UTC
Turbine-security and id_table primary key method
Hello All,
It seems to be there is no longer
database.maps.builder=org.apache.turbine.util.db.map.TurbineMapBuilder
property in TR.properties of T2.3
Is there any way to set primary key method to native?
First, but unwanted method is modify source :-)
Second, modify my om.TurbineUserPeerAdapter:
public TurbineUserPeerAdapter ()
{
try {
DatabaseMap dbMap = Torque.getDatabaseMap();
TableMap tMap = dbMap.getTable("TURBINE_USER");
tMap.setPrimaryKeyMethod(TableMap.NATIVE);
tMap.setPrimaryKeyMethodInfo("turbine_user_seq");
}
catch (Exception e) {
log.error (LOGHEADER+"TurbineUserPeerAdapter error:" + e.getMessage());
}
}
but it is a little sticky way, because I have an om.TurbineUserPeerAdapter
(ExtendedUser howto), but I don't have other group-,permission-,role
adapter.
Or is there an elegant way of this?
--
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Turbine-security and id_table primary key method
Posted by Zamek <za...@vili.pmmf.hu>.
Hello,
On Monday 23 June 2003 15.55, Quinton McCombs wrote:
> You could build from the source version. There is a schema file for the
> turbine tables. Just modify it to make the primary key generation use
> the database's native method.
ok, thx to response
> > Hello All,
> >
> > It seems to be there is no longer
> >
> > database.maps.builder=org.apache.turbine.util.db.map.TurbineMapBuilder
> >
> > property in TR.properties of T2.3
> >
> > Is there any way to set primary key method to native?
> >
> > First, but unwanted method is modify source :-)
> >
> > Second, modify my om.TurbineUserPeerAdapter:
> >
> > public TurbineUserPeerAdapter ()
> > {
> > try {
> > DatabaseMap dbMap = Torque.getDatabaseMap();
> > TableMap tMap = dbMap.getTable("TURBINE_USER");
> > tMap.setPrimaryKeyMethod(TableMap.NATIVE);
> > tMap.setPrimaryKeyMethodInfo("turbine_user_seq");
> > }
> > catch (Exception e) {
> > log.error (LOGHEADER+"TurbineUserPeerAdapter
> > error:" + e.getMessage());
> > }
> > }
> >
> > but it is a little sticky way, because I have an
> > om.TurbineUserPeerAdapter
> > (ExtendedUser howto), but I don't have other group-,permission-,role
> > adapter.
> >
> > Or is there an elegant way of this?
> > --
> > thx,
> > Zoltan Zidarics programmer
> > PTE University Pecs, Hungary
> > icq: 43288694
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
--
udv,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
RE: Turbine-security and id_table primary key method
Posted by Quinton McCombs <qm...@nequalsone.com>.
You could build from the source version. There is a schema file for the
turbine tables. Just modify it to make the primary key generation use
the database's native method.
--------------------------------------------
Quinton McCombs
NequalsOne - HealthCare marketing tools
mailto:qmccombs@NequalsOne.com
http://www.NequalsOne.com
> -----Original Message-----
> From: Zamek [mailto:zamek@vili.pmmf.hu]
> Sent: Monday, June 23, 2003 5:20 AM
> To: 'Turbine Users List'
> Subject: Turbine-security and id_table primary key method
>
>
> Hello All,
>
> It seems to be there is no longer
>
> database.maps.builder=org.apache.turbine.util.db.map.TurbineMapBuilder
>
> property in TR.properties of T2.3
>
> Is there any way to set primary key method to native?
>
> First, but unwanted method is modify source :-)
>
> Second, modify my om.TurbineUserPeerAdapter:
>
> public TurbineUserPeerAdapter ()
> {
> try {
> DatabaseMap dbMap = Torque.getDatabaseMap();
> TableMap tMap = dbMap.getTable("TURBINE_USER");
> tMap.setPrimaryKeyMethod(TableMap.NATIVE);
> tMap.setPrimaryKeyMethodInfo("turbine_user_seq");
> }
> catch (Exception e) {
> log.error (LOGHEADER+"TurbineUserPeerAdapter
> error:" + e.getMessage());
> }
> }
>
> but it is a little sticky way, because I have an
> om.TurbineUserPeerAdapter
> (ExtendedUser howto), but I don't have other group-,permission-,role
> adapter.
>
> Or is there an elegant way of this?
> --
> thx,
> Zoltan Zidarics programmer
> PTE University Pecs, Hungary
> icq: 43288694
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org