Fwd: Columnmap only support one foreingkey

2008-02-19 Thread Fran Ferri
In my aplication i need a column object working, im using torque, and his
generated clases.

i think that a simple manual to configure and use multiple databases is very
interesting.

Why the columnmap only supports one related column?
Is an update pending?

an example or style manual to implement torque must be usefull for begginers
as me.

sorry my english


Re: using timestamp with time zone

2008-01-05 Thread Fran Ferri
TORQUE 3 is genetarting for SQL Server the date in the format: '20070130
00:00:00' but SQL Server 2005 is not working with this format. Is posible
change the output date format in TORQUE?

2008/1/4, Raul Acevedo <[EMAIL PROTECTED]>:
>
> If I didn't need to do this I wouldn't be asking.  :)
>
> I was hoping to avoid overriding/adding methods to do a conversion, the
> whole point is to have Torque handle this automatically.
>
> Raul
>
> On Wed, 2008-01-02 at 16:34 -0500, Greg Monroe wrote:
> > Some quick research on this indicated that this seems
> > to be a problem with the JDBC Timestamp API which does
> > not allow for the TimeZone part of the SQL data.  My
> > guess is that JDBC drivers for SQL servers that support
> > this column type convert this into the correct GMT
> > time representation or supply a JDBC specific object
> > to support this.
> >
> > Of course, this problem is compounded by the fact that
> > there is a LOT of variations of how different DB engines
> > (and version of them) support this column.
> >
> > That said, there may be a couple of ways to deal with
> > your problem in a local manner.
> >
> > First, do you REALLY need that type of column?  Timezone
> > is really a display issue and not a storage one.  A date
> > inserted into a DB Timestamp column using a Java Date object
> > that has been created using Timezone parsing will be the
> > correct time if it is displayed with any associated TimeZone
> > setting.
> >
> > If you really need this, then you might look at using a
> > VARCHAR setting in the XML with the underlying DB manually
> > set to TIMESTAMP WITH TIMEZONE.  This should return your
> > JDBC's .toString() representation.  You can
> > then locally override/add your own methods for converting
> > too and from a Java date object via the String representation.
> >
> >
> >
> >
> >
> > > -Original Message-
> > > From: Raul Acevedo [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, December 27, 2007 9:23 PM
> > > To: torque-user@db.apache.org
> > > Subject: using timestamp with time zone
> > >
> > > Can Torque work with timestamp with time zone columns?  I have two
> > > problems:
> > >
> > > 1.  Torque's XML mapping DTD doesn't allow "timestamp with
> > > time zone", only "timestamp".
> > >
> > > 2.  If I change the column type in the database, Torque
> > > always reads null from that column.
> > >
> > > Is it possible for this to work?  Many thanks,
> > >
> > > Raul Acevedo
> > > http://www.cantara.com
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > DukeCE Privacy Statement:
> > Please be advised that this e-mail and any files transmitted with
> > it are confidential communication or may otherwise be privileged or
> > confidential and are intended solely for the individual or entity
> > to whom they are addressed. If you are not the intended recipient
> > you may not rely on the contents of this email or any attachments,
> > and we ask that you please not read, copy or retransmit this
> > communication, but reply to the sender and destroy the email, its
> > contents, and all copies thereof immediately. Any unauthorized
> > dissemination, distribution or copying of this communication is
> > strictly prohibited.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Torque Runtime errors:-ID_TABLE

2007-12-17 Thread Fran Ferri
I think you need execute the init-tables-sql for idbroker


Re: idbroker generates existing ID's

2007-11-15 Thread Fran Ferri
Sorry, nothing for here similar.

2007/11/15, Hidde Boonstra [Us Media] <[EMAIL PROTECTED]>:
>
> Hi all,
>
> we're experiencing some weird trouble while using the IDBroker. Two of
> our sites (one running on MySQL 5.x + Torque 3.3-RC1 and one running on
> Postgres 8.x + Torque 3.3-RC2) start throwing duplicate key exceptions
> after running (without problems) for a while. The IDs generated are much
> lower than the next_id entry in the id_table. When I restart the
> application the problem is gone, but after a while (days/weeks) it
> returns. Does anybody know what is going on, or has experienced similar
> problems?
>
> Thanks in advanced,
>
> with kind regards,
>
> --
> Hidde Boonstra
> Us Media B.V.
> Stadhouderskade 115
> 1073 AX Amsterdam
>
> t: 020 428 68 68
> f: 020 470 69 05
> www.usmedia.nl
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>