Yes, everything seems correct from my end. Here is a bit of my schema:
table name=underwritingApp
column name=underwriterId primaryKey=true required=true
type=INTEGER autoIncrement=true/
column name=companyId type=INTEGER/
foreign-key foreignTable=company
I know Tom has a lot of experience with the generator so this question
is probably for him. Is there an option in the build.properties file
that will put defaultJavaNamingMethod=javaname in the schema file?
Right now I have hacked a task together with sed to add it, just
wondering if it's
Alright Torque Experts.
Using MSSQL and trying to save new rows with defaultIdMethod=native.
Now I am getting a null pointer exception In the setPrimaryKey method of
one of the base objects (see excerpt 'stack'). I debugged a little bit
and found that the variable keyGen was always coming
side (at least for me) is that I can
use DW's app tools like coding drop downs populated from these beans.
Maybe someday I'll find the time.
-Original Message-
From: Trey Long
I wrote about a similar idea a few messages ago when it comes to
relationships in a table. As a recap I
I wrote about a similar idea a few messages ago when it comes to
relationships in a table. As a recap I am using Axis + Torque to give my
database web service wings as it were.
Axis generates a WSDL for me, but if I expect it to be anything close to
coherent I need to use strong typing with
Alright. Here is the information I came up with. The most recent change
I made was to break up the classes into separate sub packages like so:
#Package paths
torque.targetPackage = com.provima.pcsw.db
torque.subpackage.peer = peer
torque.subpackage.object = om
torque.subpackage.bean = bean
This is a big help, thanks.
I apologize for posting things that are in the docs, to be honest I am
still struggling with the format of the Torque docs. They seem to be
very decentralized so it take me a while to find what I'm looking for.
Thoralf Rickert wrote:
Question 1: Is there a way to
Alright guys, this list has been great for me since I am relatively new
to the Java DB scene and I want to thank everyone that responds to this
message in advance. Your input is greatly appreciated because I am still
in a learning phase and experienced insights are invaluable.
Currently:
I
Where does Torque pull it's configuration from? Where is the class(es)
that are responsible for it?
I am trying to use torque in an application where database platforms may
need to be switched rapidly via a configuration file. I am having a
little trouble understanding where torque get the
(...).
The overloaded Torque.init() method takes either a file name or a
org.apache.commons.configuration.BaseConfiguration object
Bill
Trey Long wrote:
Where does Torque pull it's configuration from? Where is the
class(es) that are responsible for it?
I am trying to use torque
I see. Well, I guess this would be a good oppurtunity to contribute then.
And... THE NUMBERS ARE BAD, Don't light the fuse man ;)
Henning P. Schmiedehausen wrote:
Trey Long [EMAIL PROTECTED] writes:
This means that no developer has gotten around to work with Firebird
and the templates
I am trying my best to figure out what is stopping Torque from doing
anything with my Firebird database, the best I can come up with is an
'ant -debug create-db'. The error is ends up at is:
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource
Create-Db seems to be stopping short of it's full task, let me see if I
can explain my problem. Also, if you experts out there see any other
problems with my configuration or whatever else I send over, please give
me advice.
I have torque deployed using ant and I am currently testing the
your xyz-schema.sql file.
On Thu, 2005-10-13 at 11:16 -0400, Trey Long wrote:
Create-Db seems to be stopping short of it's full task, let me see if I
can explain my problem. Also, if you experts out there see any other
problems with my configuration or whatever else I send over, please give
me
I was searching for the same solution, but I think the
torque.basePrefix only refers to the Base classes, not all of the OM
classes.
I have having some naming conflicts and I would like to know if there is
a way to prefix the rest of the classes that Torque generates so I don't
have to
in them are not supported
by Torque. This is known, there is also an issue in scarab for this.
I should look into it some time whether this can be fixed.
Thomas
Trey Long [EMAIL PROTECTED] schrieb am 11.08.2005 15:12:59:
I am using the following:
Torque Version: 3.2-rc1
Using: ANT, MSSQL
object to null and save the object, maybe the
database could use the default value for the some_date column upon insert.
Not sure whether this can be done, though.
Thomas
Trey Long [EMAIL PROTECTED] schrieb am 12.08.2005 15:40:16:
From my limited view it seems that it would be pretty
.
The only possibility I see at the moment is to refresh the object from the
db and then get the inserted value.
Thomas
Trey Long [EMAIL PROTECTED] schrieb am 12.08.2005 17:39:13:
On insertion that sounds reasonable. But how would the object handle it
on construction? Especially if I decided
- the version of Torque you are using
- a relevant snippet of generated code around BaseQuestionnaire.java:45
where the comile error occurs.
Thomas
Trey Long [EMAIL PROTECTED] schrieb am 08.08.2005 18:11:20:
I am trying to compile the Torque generated classes and I am running
into a problem
I am trying to compile the Torque generated classes and I am running
into a problem with a getDate() method. The following error is returned:
build:
[javac] Compiling 51 source files to C:\...\web\WEB-INF\classes
[javac] C:\...\BaseQuestionnaire.java:45: cannot find symbol
[javac]
Torque Version: 3.2-rc1
Using: ANT, MSSQL
I have managed to get Torque working with MSSQL by setting the
{torque.database.schema} variable to the owner of the database. I am
running the MSSQL Profiler which tells me all of the sql commands run
through the server. Torque uses the following
True to task, when I write an email for help the answer jumps out of the
bushes and attacks me. Torque was operating fine, however the SQL Server
permissions applied to the new database were somewhat limiting for the
new user.
I added the user to the database under the foolish assumption that
22 matches
Mail list logo