You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Alexandru Dovlecel <al...@siemens.com> on 2004/03/30 19:21:18 UTC
Primary key, not autoincrement or IdBroker
Hi everybody,
If I have a primary key field that is not an native autoincrement nor
IdBroker,
do I HAVE TO set the idMethod to none??? Or idMethod="native" would not
cause any problem.
Thanks,
Alex
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org
RE: Primary key, not autoincrement or IdBroker
Posted by Alexandru Dovlecel <al...@siemens.com>.
Sorry for posting this question. Silly me.
Answer: YES, I HAVE TO SPECIFY idMethod="none" !!! :((( Tested and now it
works.
Best wishes to all of u,
Alex
> -----Original Message-----
> From: Alexandru Dovlecel [mailto:alexandru.dovlecel@siemens.com]
> Sent: Tuesday, March 30, 2004 7:21 PM
> To: 'Apache Torque Users List'
> Subject: Primary key, not autoincrement or IdBroker
>
>
> Hi everybody,
>
> If I have a primary key field that is not an native autoincrement nor
> IdBroker,
> do I HAVE TO set the idMethod to none??? Or idMethod="native"
> would not
> cause any problem.
>
> Thanks,
> Alex
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org
Re: Feature proposal / Hibernate
Posted by Scott Eade <se...@backstagetech.com.au>.
Alexandru Dovlecel wrote:
>What would you think of an attribute readonly of type boolean. Using this
>attribute on a table will result in generating only getter methods and no
>setter methods at all.
>
>I think this feature is also present in Hibernate. Do you think is usefull?
>
Patches are welcome :-)
>BTW, have you ever used hibernate? Is it better that torque? I am right now
>learning about using O/M tools, so I have to find which is better and why.
>Do you have other proposals?
>
I personally haven't used Hibernate yet but I hear good things about
it. No doubt each is good for different needs.
Scott
--
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org
Feature proposal / Hibernate
Posted by Alexandru Dovlecel <al...@siemens.com>.
Hi again,
What would you think of an attribute readonly of type boolean. Using this
attribute on a table will result in generating only getter methods and no
setter methods at all.
I think this feature is also present in Hibernate. Do you think is usefull?
BTW, have you ever used hibernate? Is it better that torque? I am right now
learning about using O/M tools, so I have to find which is better and why.
Do you have other proposals?
Thanks,
Alex
> -----Original Message-----
> From: Alexandru Dovlecel [mailto:alexandru.dovlecel@siemens.com]
> Sent: Tuesday, March 30, 2004 7:21 PM
> To: 'Apache Torque Users List'
> Subject: Primary key, not autoincrement or IdBroker
>
>
> Hi everybody,
>
> If I have a primary key field that is not an native autoincrement nor
> IdBroker,
> do I HAVE TO set the idMethod to none??? Or idMethod="native"
> would not
> cause any problem.
>
> Thanks,
> Alex
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org