replacing the servlet.jar when
compiling Turbine.
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: http://www.mail-archive.com/turbine%40list.working-dogs.com/
Problems?: [EMAIL
y. I hope you still
find torque/om/peer classes useful with these adjustments, so your time
is not wasted.
John McNally
David Ramsey wrote:
The VARCHAR2 is being mapped to String, yes. And I did pull the
parameters by hand, loaded a criteria, and called doUpdate(crit) with
the same res
I made the switch so that peers and om classes are in the same package.
Or I should say I did this in the torque generated classes.
If anyone missed the discussion this is to allow a better definition of
the public api.
John McNally
I did this on purpose to enforce that only the constants defined in the
Peers are used here. I am not sure why == would cause a problem. Do
not use anything other than the Peer constants in this method or it
might break later.
Leonard Richardson wrote:
For consistency with getByName (also,
p any more than equals() would.
I think a comment in the generated code would have more preventative effect.
The comment is there. :-)
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Searc
be associated with.
John McNally
Dave Bryson wrote:
Ok,
Jason asked me about this a while back and I just started to dig through the
code again and noticed that my name is in some author tags for things I
_know_ I didn't write!
My best guess is somehow my name got stuffed in the tags
[EMAIL PROTECTED] wrote:
hi,
is it possible to execute a query something like
select distinct column from table
using the peer model. I noticed the setDistinct and addSelectColumn methods
in the Criteria object but can't figure out how they work together.
Criteria c = new
with a particular class and are adding functionality or bug fixing that
they fix the problem. Though the code you are quoting is very basic
functionality and should be fixed ASAP. If you have a patch, it would
be welcomed.
John McNally
"David S. Faller" wrote:
While looking at some Singlet
my comment is: commit it.
"Brekke, Jeff" wrote:
We found a problem where the default mapbuilder is being used when we really
want the correct one defined in our schema to be called. Below is our patch
to make the mapbuilder datamember public in the Peer generated classes and
use that in
d anywhere in code that I am
aware of that would even require that.
But if it is no longer acceptable to define the constants in a public
way because they are TableColumns instead of Strings, this efficiency
enhancement is not possible.
John McNally
"Brekke, Jeff" wrote:
We found a probl
that these Records should be
considered read only objects, but I should add that to the javadoc.
John McNally
Daniel Rall wrote:
John McNally [EMAIL PROTECTED] writes:
[EMAIL PROTECTED] wrote:
hi,
is it possible to execute a query something like
select distinct column from
Jon Stevens wrote:
on 2/26/01 1:53 PM, "John McNally" [EMAIL PROTECTED] wrote:
Is this only considered acceptable for String constants?
Yes IMHO. Also, in this case, it is patching code that is used within
Turbine only...therefore, it should be done right.
FooP
want to get Intake in working order, so I am content to leave this as
an issue to be sorted out later or by someone else, but a decision might
be in order.
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe:
his change integrated quickly. It has
turned out to be a much harder change than I originally bargained for.
But I still have hope that the ease of use will be worth it.
John McNally
-Original Message-
From: Brekke, Jeff
To: 'Daniel Rall '; '[EMAIL PROTECTED] '
Sent: 2/24/01 9:20 P
Fixed.
Dave Bryson wrote:
On Sun, 25 Feb 2001, you wrote:
This is busting the build:
CORRECTION - this is BaseObject
// in BasePeer
public void setPrimaryKey(int primaryKey) throws Exception
{
this.primaryKey = new SimpleKey(String.valueOf(primaryKey));
}
I have modified the ObjectKey stuff a little so you should be able to do
Date date = x.getMyDate().getDate();
"Diethelm Guallar, Gonzalo" wrote:
I have a table with two columns, and the primary
key is a DATE column, MYDATE. Torque generates a
public SimpleKey getMydate()
method.
it in any code they come across. Their are some workarounds that do
not degrade performance so much such as making use of static
initialization, but if it is not possible, methods must be synchronized.
John McNally
Leon Messerschmidt wrote:
Hi,
I'm not an expert, but this sounds as if it might
?
John McNally
[EMAIL PROTECTED] wrote:
Sorry for the late: I send you the patch for the mapping of
TIMESTAMP type into java.sql.Timestamp (and not java.util.Date).
It is also necessary to introduce in the templates of torque the following
line:
import java.sql.Timestamp;
I think
to know how many components of what
type are required.
John McNally
"Diethelm Guallar, Gonzalo" wrote:
I have a table with two columns, and the primary
key is a DATE column, MYDATE. Torque generates a
public SimpleKey getMydate()
method. How do I get to the underlying d
priority, so hopefully we can get an integrated system
in place soon.
I got an error on the Diagram.vm page, but would definitely like to see
it.
John McNally
Leandro Rodrigo Saad Cruz wrote:
Ok..
here you can find a demo site
[http://ns1.ibnetwork.com.br:8080/servlet/form]
I hope you can
propose?
John McNally
William Lee wrote:
Thanks a lot, I think I get it now. Wouldn't it make sense though to
have the search sequence to be:
screens.html.en.Index
screens.html.en.Default
screens.html.Index
screens.html.Default
screens.Index
screens.Default
I would imagine
le who
hit the Cancel button are not greeted to a Not Authorized page as well,
though I am sure that can be configured better than many sites do.
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECT
Shaun Campbell wrote:
Just noticed I am getting a 'Property ${firstbuild.present} has not been
set' message when building project-om. Is this significant?
Shaun
It means I missed deleting a debugging message about something that is
no longer relevant.
John McNally
key as well and could be preferred over the (String,
ClassLoader) signature. So I will fix it, if you do not beat me to it.
John McNally
Leon Messerschmidt wrote:
Hi,
AFAIK generated Peer objects started out with a row2Object() method taking
an object of type java.lang.Class as the last
Leon Messerschmidt wrote:
I have started work on this. As it affects code I have added regarding
class hierarchy I would like to make the changes. Also since I am the
one that messed it up, I have to fix it, so just letting you know I am
on it.
John McNally
Hi,
AFAIK generated Peer
but
unfortunately I dropped the ball on it. Was it you, Santiago Gala?
Recent discussions regarding multiple Turbine applications in one JVM
have also occurred, so hopefully the grand solution that supports
multiple applications and language support is just around the corner.
John McNally
location to look for
the solution.
John McNally
"Diethelm Guallar, Gonzalo" wrote:
This may show my ignorance; here it goes...
When a user visits a Turbine app, Turbine
creates a session for the user, and sends
the user an opaque identifier for the session
(in the shape of a cooki
John McNally wrote:
BaseObject contains get/setPrimaryKey methods.
Actually what I should have said is that the Persistent interface
contains get/setPrimaryKey methods. BaseObject implements the
Persistent interface. I would recommend casting to the interface.
Ivan Makkaveyev wrote
ly reduces complexity.
John McNally
William Lee wrote:
I'm using tdk 1.10a11 and when I try to find the certain screen class by
the template path, it always goes back to Default.class. Here is what I
do:
I overrided the VelocityPage to write my own stuff. I have the
structur
ide a utility method that would properly compare/convert a util.Date
with/to/from a Timestamp.
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: http://www.mail-archive.com/t
BaseObject contains get/setPrimaryKey methods.
Ivan Makkaveyev wrote:
Hello All!
I'd like to reference TURBINE_USER from my application tables. The most
natural way I suppose would be using USER_ID. But I cannot find methods to
obtain it. What can I do? Adding additional attribute and
A quick look at this and I think you should have
Status.addWishs(Wish)
Status.getWishs(Criteria)
Wish.getStatus()
Wish.setStatus(Status)
There are no many-to-many relationship tables so that should be about
it. Are you not seeing these?
John McNally
Shaun Campbell wrote:
Like Steve I too
I took a quick look at TurbineVelocityService and it looks as though it
would probably throw a TurbineException which wraps whatever exception
Velocity would throw in this case. Is Velocity not throwing an
exception? If so, you may want to ask on the velocity list, why?
John McNally
Herv
Yes, Turbine still supports JServ. I think there are two classes that
will not build. One gives relative urls for use in templates, but it is
very easy to get by with absoulute urls when they are being generated
anyway. The other, I think is TurbineConfig, is useful for running
services
elements. Something like a misspelled table or column name in a
foreign key definition is a good possibility.
John McNally
Leandro Rodrigo Saad Cruz wrote:
I'm getting erros while trying to use torque.
Turbine.jar comes from cvs ( updated )
Stack Trace :
java.lang.NullPointerException
Regarding my last suggestion on the large try/catch block. This will
still not provide the best information to diagnose errors in the schema,
it would probably be good to provide error reporting closer to the
source, if possible.
Thanks,
John McNally
Leandro Rodrigo Saad Cruz wrote:
I'm
Sorry, I almost let this slip by. It has been added.
ingo schuster wrote:
At 17:53 01/26/01, John McNally wrote:
I would prefer to see something that emphasized the "template" keyword
over "screen" or at least provided a property for it so it is as easy.
Also,
I think the code contributed by Ilkka looks to be of high quality. I am
+1 on giving him cvs access, so that he can continue to improve on his
recent additions.
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe
. Please follow the standards.
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: http://www.mail-archive.com/turbine%40list.working-dogs.com/
Problems?: [EMAIL PROTECTED]
Here are the commit messages describing a few additions/changes I have
made recently.
Added an interface, Persistent, that can be used in place of BaseObject.
So the OM classes no longer have to extend from BaseObject. BaseObject
now serves as a default implementation of the Persistent
. But then again the logic is not that
difficult and does not require that much extra Velocity code, so it may
not be worth breaking the MVC separation.
John McNally
Ethan Adams wrote:
Does it break the MVC model to have your screen class pre-build HTML and stuff it
into a context value
I am a bit confused about the problem. You are setting the content type
and your pages include the appropriate html tags and Navigator 4.08 is
not rendering things correctly? This is a bug to report
to Netscape not Turbine.
Oskar ?wida wrote:
OK, but I still have a problem - I mean Netscape
to be used in smaller
applications, but I am not sure the benefit is worth the cost.
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: http://www.mail-archive.com/turbine%40list.workin
Santiago Gala wrote:
While working on a patch to simplify current Jetspeed code, two ideas
came up on me:
1- DynamicURI is a strong candidate for pooling instances, since it
should be heavily used under most setups (typically, we have more than
five per request, and they are instantiated
that is generally followed in java src trees. If we put all the om/peer
objects in one package but still present the source files as
om/
om/peer
om/base
om/base/peer
would this cause any problems or criticism?
John McNally
Steve Grant wrote:
Whats wrong with this XML? When set the Object model to complex I get no
methods in either the item or category peer classes that refer to the
other - like a getItemsJoinXxx(Criteria).
database
table name="ITEM"
column name="ITEM_ID" required="true"
with
some other build systems. I am hoping that it is doable, but I can live
without it.
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: http://www.mail-archive.com/turbine%40list.working
Mostly the rationale is that I was unsure of all the consequences of changing the
simple
attribute while other object relationships may exist due to the foreign key. For
example
object A object may be
in a collection of object B due to the foreign key attribute A.b. I did not want to
add
() method.
John McNally
Steve Grant wrote:
I have the objectModel set to complex in my Torque properties.
I have the XML in the database schema set up for a foreign key.
Is that all I have to do?
What are examples of the join methods that should then emerge in the Peers?
Its
Please give code locations/samples. A requested patch would also be helpful.
[EMAIL PROTECTED] wrote:
Hello,
I would like to know is there is a particular reason for which you decide
to map the TIMESTAMP
type into java.util.Date and not into java.sql.Timestamp.
I am asking this
The most appropriate place to would be in the template. The RunData object and
therefore
the response object are available from the Context. Though you are right it is
probably
nice, if the majority of your templates output html, to set a default.
Oskar ?wida wrote:
Hi,
I have a small
In general the add methods take a comparison clause as the last argument. Criteria
contains several static Strings that can be used for this argument so
criteria.add(SomePeer.SOME_COLUMN, (Object)"beginswith%", Criteria.LIKE);
John McNally
Leandro Rodrigo Saad Cruz wrote:
how
) and you should use them to add any
appropriate business logic.
It seems you may be missing these classes, if so, make sure a file called "firstbuild"
is
located in the same directory as torque.xml (where you are running torque from) and
then
rerun torque.
John McNAlly
Leandro Rodrigo
"Jon S.Stevens" wrote:
This email is autogenerated from the output from:
http://jakarta.apache.org/builds/gump/latest/turbine.html
...
compile:
[javac] Compiling 333 source
ernst leonhard wrote:
Hella all,
I tried this code-fragment from the "Peer" documentation:
Item itm = new Item()
data.getParameters().setProperties(itm);
Object o = ItemPeer.doInsert (itm);
The compiler returns:
[javac]
If this fixes the problem, I'm all for this solution. I've added the change to cvs.
Julia Stobbe wrote:
Hi,
this problem crops up regularly in the mail archive, but doesn`t seem to be
fixed:
i switched a working mysql based testApp to a postgreSQL database (using
cvs snapshot from
Youngho Cho wrote:
Hi,
Today I updated 20010212 snap shots
I just now submitted a patch that should solve this.
And When I insert new data to the db I received following error.
Am I missed something ??
java.lang.NullPointerException
java.lang.NullPointerException
at
a class hierarchy to the OM/Peer model. Here is a short description.
Note that it has not been tested much, I expect it to be tested more
extensively early next week.
John McNally
commit message:
Added support for a table to map to multiple objects. This kind of mapping
will occur for a table
I have added some support for a certain type of object-relational mapping that
includes a class hierarchy to the OM/Peer model. Here is a short description.
Note that it has not been tested much, I expect it to be tested more
extensively early next week.
John McNally
commit message:
Added
Use rundata.declareDirectResponse(). The call should probably be before
you start writing to the output stream, though that is not necessarily
required. Let me know if this solves your problem.
John McNally
Thibault Weintraub wrote:
Hi,
I try to build a RawScreen in order to provide
comment on implementation as a service.
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: http://www.mail-archive.com/turbine%40list.working-dogs.com/
Problems?: [EMAIL PROTECTED]
it will affect a lot of your code now, I
am sure it will affect more later.
John McNally
fanyun wrote:
Hi John:
Would you please explain a little more about the reason why you want move to
List. You know it is a great change to my project. I will need to change
every line of code.
Regards
ou can end up
having to override a lot of methods to achieve your goal and altering
other classes to make sure they are using AbcdPeer not AbcPeer.
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PRO
ons could be made to work more easily. You will have to be clear
about how session data must be stored, for example in Users temp/perm
hashtables, so that it can be kept in the proper state as well.
John McNally
To subs
Done.
Christof Marti wrote:
Sorry for the repost.
The previous mail had some linewrappings in the patches.
-
While playing around with the new TDK/Torque if found two small but nasty bugs.
Patches are included
being (as I don't plan to implement this other
method, right now,) is that it could be done simply by subclassing the
current TurbineTemplateService implementation and overriding one method.
John McNally
Jon Stevens wrote:
on 2/7/01 4:34 AM, "ingo schuster" [EMAIL PROTECTED] wro
I see these as already fixed by Martin Poeschl on 2/4.
Jon Stevens wrote:
Hey John, care to fix those? :-)
-jon
on 2/7/01 12:00 AM, "Jon S.Stevens" [EMAIL PROTECTED] wrote:
[javadoc] Building index for all the packages and classes...
[javadoc] javadoc: warning -
he default would be the one that is currently defined, if the
app keyword was not present.
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: http://www.mail-archive.com/turbine%40list.workin
be of some value to support a history so that back form
buttons could be made to work more easily. You will have to be clear
about how session data must be stored, for example in Users temp/perm
hashtables, so that it can be kept in the proper state as well.
John McNally
objectModel=complex, but the doc is better explaining the
details.
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: http://www.mail-archive.com/turbine%40list.working-dogs.com/
Problems
Shaun Campbell wrote:
Ok got Turbine and Torque working fine now and am very impressed but I think
we may have come up against a bit of a problem.
The problem is that, as in the real world, the data we wish to display on
the screen comes from more than one table. i.e we want to translate
t contain the needed utility and I looked for the
quickest way to accomplish the task. Please someone, improve it, or I
will eventually improve it after I accidently get my code deleted.
John McNally
To subscribe:[EMAIL PROTE
is that Criteria could be cleaned up a bit to better
integrate the changes, but I do not have the time at the moment and I
wanted to first add the functionality without a major change. So
suggestions/implementations would be appreciated.
John McNally
cts. This will likely require some
custom code. And actually the last sentence could apply to many
circumstances.
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: http:
with an Object instance would become
abstract. As I discussed with John McNally yesterday, this obviates
the need to store duplicate primary key information in multiple
locations within a BaseObject extension class. John's recent Torque
changes now supply implementations for both of these methods
A reminder to always do a cvs diff prior to commit. The file here has
been converted from unix line endings to dos line endings.
This can happen when checking a file out with a unix client, then
editing the file on a windows box with a program that converts the line
endings, and then moving
I considered making this an option, but I wanted to provide a way for
id's to be retrieved if they turn out to be unneeded, as this could lead
to a lot of wasted keys. I also had some desire to keep the
idMethod="idbroker" solution completely compatible with the
autoincrement/sequence options.
s.
Can you tell me the value of dbName prior to the method call at 1142.
Also approximate time of the last update where things were still
working, could help as well.
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe:
here else, please tell me where is the
more appropriate place. I do not see why the rest of your app needs to
concern itself with where to save the object's data when it already
knows where it should go.
Looking at the cvs log, this change seems to have been
introduced by John McNally with release 1
I have determined that getMapBuilder().getDatabaseMap().getName() is
always returning "default". I have not determined why. In an example
app where I do not define a "default" db, only a "foo" db, all the
torque map builders are adding tables to a DatabaseMap whose getName()
method
s well but
did not try first, sorry. :(
I assume the fact that the root element is wrong has not been caught
because no validation is occuring. Torque does not really care about
the root tag, it is just there to make the xml correct.
John McNally
--
other than possibly the
comment.
John McNally
(I hope I get this to the correct list,)
Java Apache CVS Development wrote:
User: mpoeschl
Date: 01/02/01 17:58:44
Modified:src/java/org/apache/turbine/torque/transform
DTDResolver.java
Log:
workaround
a problem, while others
have turbine working with postgresql. Is it a recent version? Are you
possibly running it under windows?
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: http
ingo schuster wrote:
At 17:53 01/26/01, John McNally wrote:
I would prefer to see something that emphasized the "template" keyword
over "screen" or at least provided a property for it so it is as easy.
Also, would it not be good to include tags to add QueryData and
Are the columns defined as uppercase in your schema?
mango parts wrote:
I am running the lastest cvs version of turbine with postgres. I have
encountered problems retrieving the field values from the TurbineUser
class, calling getUserName(), getLastName(), or getFirstName() would
always
he FooPeer is not going to be returning the object you want, so
you will be back in the position prior to the current changes, so add
your code to Foo.
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECT
o fix it?
I could of course try to make it as clear as possible in the docs, but I
still think it is just a little confusing that the template and Screen
are both screen parts of a page, but the java class gets the keyword
screen.
John McNally
--
Yea! I think I found it. get the latest cvs.
John McNally
Leon Messerschmidt wrote:
Hi,
I got the same problem with *any* database access. I fixed it by grabbing
an old Criteria.java (I think version 1.10). I'm not sure what exactly the
problem is, but the older one works
, if the interface contains
convenience methods geared towards one (very important) implementation.
So, I am beginning to see Rafal's point, and it is going to be up to
others to convince Rafal otherwise.
John McNally
Steve Ruby wrote:
You now need to do a cast because Rafal thinks that an ID
John McNally wrote:
Let me start off by saying I have been working on making the Peer system
handle OR where clauses. And I have added the ability to alias tables
as well.
Here is the diff to allow adding OR clauses to a Criteria as well as
being able to specify a table alias. I would
to it soon, but I am hoping that someone (you maybe), will find
the problem before I am able. :)
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: http://www.mail-archive.com/turbine
I would prefer to see something that emphasized the "template" keyword
over "screen" or at least provided a property for it so it is as easy.
Also, would it not be good to include tags to add QueryData and PathInfo
to the URI?
ingo schuster wrote:
Hi,
what about adding following JSP tag
take a look, just let me
know.
I am using JDK1.3 on RedHat 7.0 and MySQL, TDK 1.1a10
what gives?
is there some special way of getting torque to handle basic currency, or
must I download the source and start hacking?
That would be great. We always appreciate receiving a patch with the
fix to a
John McNally wrote:
Sean Allen wrote:
Ahem, I re-iterate
I am attempting to create a schema that models customer accounts
a snippet of my xml-schema looks like so
" column name="LAST_PAY_AMNT" required="true" size="6,2" type="FLOAT"/
rque could potentially hide the complications, but I am
having trouble figuring out how. :)
As a final note, let me state that torque objects need to quit referring
to foreign key columns using primitive types like "int".
Com
This is either an error in your xml schema or Torque (are you using a
recent version of the tdk or turbine). If you declare the column type
as INTEGER it should not convert this to byte[]. What does the column
tag look like in your schema?
Alexander Banthien wrote:
Hi all,
I would
Mike Haberman wrote:
I was wondering if I can get your input regarding the use of native
types in the BaseObject subclasses. The problem is that there is no
way of detecting a null attribute. Right now all my integer fields
are foreighn keys so that a value of 0 is null (for me). But,
. (not the tdk)
cd build
./build-turbine.sh torque
cd ../bin/torque/torque
The files here make up the standalone torque.
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: http://www.mail
I realise that this is a non-issue for all of you with real
connectivity, but some of us live in the third world.
is there an obvious way around this that I am missing
Regards
Sean Allen
I thought someone fixed this already. The dtd is being copied to
torque.jar, does anyone know the
But the idea is not that complicated, so if you feel it has merit jump
in and help me develop it.
John McNally
To subscribe:[EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: http://www.mail-archive.com/turbine%40list.working-dogs.com/
Problems?: [EMAIL PROTECTED]
1 - 100 of 483 matches
Mail list logo