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
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
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
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
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
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,
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
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
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
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
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
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
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
|
|Jay Bourland wrote:
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
.
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
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
-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
]
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
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
...@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
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
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:
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
24 matches
Mail list logo