Re: Using bit in primary key not supported?

2010-10-09 Thread Thomas Fox
In Torque 3.3 it does not work, sorry. I created a jira issue https://issues.apache.org/jira/browse/TORQUE-151 However I created a fix for Torque 4.0, see commits at the jira issue. If you want you can try to backport the fix to 3.3. You need to fix the runtime and the templates. Thomas

Antwort: Missing dtd file?

2011-03-22 Thread Thomas Fox
I just encountered an error while using the torque maven plugin. The eror was that it could not find the file http://db.apache.org/torque/dtd/database_3_3.dtd I noticed that such a file does not exist but one only named database.dtd does, so I changed the location to that. I redeployed the

Re: Missing dtd file?

2011-03-22 Thread Thomas Fox
There are several files with explicit version number like database_3_2.dtd There is also one without version number, just called database.dtd. Does that one belong to a specific verison? /Ludwig It is the 3.x dev version at the time the web site is deployed. By the way, the 3_3 dtd is now

Re: SV: Interface-Driven Design

2011-04-04 Thread Thomas Fox
I thought about interfaces for the generated classes that have getter / setter for all of the properties. I need to use them in a multi-classloader environment. The idea was to create an OSGi like interface / implementation system. That means you have a JAR with the interfaces and a JAR with

RE: Torque and SQL Injection

2011-08-05 Thread Thomas Fox
Torque 3.3 escapes Strings in Queries(see method org.apache.torque.util.SqlExpression.quoteAndEscapeText(String, DB)), so SQL injection should not be a problem. The current Torque 4 trunk uses Prepared statements throughout, which is probably even better. Thomas Adrian Paleacu

Re: how to retrieve all the tables (tablemap) in the torque database

2011-10-19 Thread Thomas Fox
Can you please check whether the package org.apache.torque.linkage was generated when you ran the generator and whether there is a $ {DatabaseMapInit}.java file in it. If yes, go to the class it inherits from and put a breakpoint in the init() method and see whether it gets called. Thanks,

RE: get the SQL to be executed

2012-01-19 Thread Thomas Fox
Perhaps you can use the log output (with some tweaks to the log4j configuration). However I'm not sure how and if Torque 3.3 logs the update statements. But then again I've heard of drivers which at as a bridge between the application and the real driver (e.g http://www.squirrelsql.org/) and which

RE: foreign keys, complexDataModel, and external schemas

2012-02-29 Thread Thomas Fox
Hi Helge, I just ran into what may be a feature or a bug... trying to find out which: When I define a table in schema1.xml and another two, including a link table for a many-to-many relationship in schema2.xml, where schema2.xml includes schema1.xml as an external schema, torque will not

Torque 4.0-beta1 released

2012-09-24 Thread Thomas Fox
The Torque development team is pleased to announce the release of Torque 4.0-beta1. The look and feel of Torque 3 was maintained. However, there are some sunstantial changes: - The generator is now a general-purpose code generator. - This means that the templates must now be specified as

RE: Template overrides through maven pom.xml.

2012-11-22 Thread Thomas Fox
The answer depends on which Torque maven plugin you use: torque-4.0-beta1 or torque-3.3 ? Thomas Hello All, I'm very noob with torque; I'm currently using Maven 3.0.4 with the maven2 torque plugin and I'm trying to set the equivalent to torque.override.dir=dir in the Maven pom.xml, I

RE: Template overrides through maven pom.xml.

2012-11-23 Thread Thomas Fox
The answer depends on which Torque maven plugin you use: torque-4.0-beta1 or torque-3.3 ? For Torque 3 , set plugin groupIdorg.apache.torque/groupId artifactIdtorque-maven-plugin/artifactId version3.3/version configuration

RE: missing dtd files from http://db.apache.org/torque/dtd/

2012-12-28 Thread Thomas Fox
The Torque site was switched to svnpubsub, and I forgot to migrate the dtd files. I'll try to find time to add them today evening in the old location. Thanks for the heads up, Thomas All dtd files are missing from: http://db.apache.org/torque/dtd/ page, please see cached page on

Torque 4.0 released

2013-03-08 Thread Thomas Fox
The Torque team is pleased to announce the release of Torque 4.0. It is available via download on http://db.apache.org/torque/torque-4.0/download.html (please empty your browser cache) or via maven central under the group id org.apache.torque. The most prominent changes with respect to 3.3 are

RE: SummaryHelper not setting replacements

2013-06-12 Thread Thomas Fox
| |Jay Bourland wrote:

RE: Generating schema.xml

2013-09-12 Thread Thomas Fox
is there a way to generate schema.xml from existing db schema (this woulb be prefered way) or from existing POJOs (entities)? Yes. For maven, fgenerate the schema from the database using jdbc metadata by: plugin groupIdorg.apache.torque/groupId

Re: Generating schema.xml

2013-09-17 Thread Thomas Fox
. However, I have fixed the NullPointerException in the trunk (it was thrown when an unknown datatype was encountered) So if you want you can check out the current trunk, build and install it and then try again withj the 4.1-SNAPSHOT maven plugin. Thomas 2013/9/12 Thomas Fox thomas

Re: 3.3 to 4.0 migration

2014-09-08 Thread Thomas Fox
This is the only document i know in the official documentation. Do you have any specific questions? Thomas - Ursprüngliche Mail - Von: Scott Eade sc...@eade.id.au An: Youngho Cho youngho1...@gmail.com CC: torque-user@db.apache.org Gesendet: Sonntag, 7. September 2014 06:26:59

Re: 3.3 to 4.0 migration

2014-09-24 Thread Thomas Fox
-torque: Error parsing XML source file: cvc-complex-type.3.2.2: Attribute 'peerInterface' is not allowed to appear in element 'table'. - [Help 1] [ERROR] How can I fix it ? Thanks, Youngho 2014-09-17 4:56 GMT+09:00 Thomas Fox thomas@seitenbau.com: Youngho Cho wrote: For the 4.0

Re: 3.3 to 4.0 migration

2014-09-24 Thread Thomas Fox
] method does not override or implement a method from a supertype [INFO] 9 errors Thanks, Youngho 2014-09-24 17:22 GMT+09:00 Thomas Fox thomas@seitenbau.com: Hi Youngho can you please replace the schema location http://db.apache.org/torque/4.0/templates/database.xsd by http

Re: 3.3 to 4.0 migration

2014-09-25 Thread Thomas Fox
transient Criteria $criteriaCacheField = null; is there any merit to keep this object during serialization process ? Thanks, Youngho 2014-09-24 21:27 GMT+09:00 Youngho Cho youngho1...@gmail.com: Hello Thomas, Thanks for your kind consideration. Youngho 2014-09-24 21:07 GMT+09:00 Thomas Fox

Re: generate enum from db at runtime

2014-10-10 Thread Thomas Fox
...@gmail.com An: Thomas Fox thomas@seitenbau.com CC: Apache Torque Users List torque-user@db.apache.org Gesendet: Donnerstag, 9. Oktober 2014 09:06:17 Betreff: Re: generate enum from db at runtime Hello Thomas, I think generated at runtime was a little exaggerated expression because of my lack of english

Re: generate enum from db at runtime

2014-10-15 Thread Thomas Fox
Ok so the agreement is that colum enums should be supported but table enmus should not. Thomas - Ursprüngliche Mail - Von: Youngho Cho youngho1...@gmail.com An: Thomas Fox thomas@seitenbau.com Gesendet: Mittwoch, 15. Oktober 2014 12:18:33 Betreff: Re: Fwd: generate enum from

Re: 3.3.1 to 4.0 migration

2015-07-01 Thread Thomas Fox
Helge Weissig wrote: I forgot about the HTML filter this group uses… pardon the crappy formatting. Here is a text-only version: Our code base is heavily invested in some of the functionality removed from torque 4.0 and I was wondering if any one had some advice on a migration path:

Re: 3.3.1 to 4.0 migration

2015-07-07 Thread Thomas Fox
in the two patches. Please create jira issues. Thanks, Thomas cheers, h. On Jul 2, 2015, at 5:04 PM, Helge Weissig hel...@grajagan.org wrote: Thanks Thomas! Some comments and follow-up questions below: On Jul 1, 2015, at 6:03 PM, Thomas Fox thomas@seitenbau.com wrote