AW: [POLL]: Cayenne 3.0 -- Java 1.4 or 5 support?

2007-08-06 Thread Peter Schröder
as there are some more new frameworks that rely on java 5 features such as tapestry, i think that this is the future. so: [X] Java 1.5 support -Ursprüngliche Nachricht- Von: Kevin Menard [mailto:[EMAIL PROTECTED] Gesendet: Montag, 6. August 2007 21:19 An: user@cayenne.apache.org Betref

AW: Problem with SQLTemplate and Date-binding

2007-08-06 Thread Peter Schröder
hi jens, you can just let cayenne do the date-parsing for you. this is an example of mine: Map parameters = new HashMap(); Calendar tmp = new GregorianCalendar(...); Calendar cal = new GregorianCalendar(...); parameters.put("start"

AW: AW: Expressions with date function

2007-07-24 Thread Peter Schröder
@cayenne.apache.org Betreff: Re: AW: Expressions with date function On 24/07/2007, at 4:45 PM, Peter Schröder wrote: > @andrus: on http://cayenne.apache.org/doc20/expressions.html there > is still a broken link to BNF expression language! Just fixed. Should take about an hour to appear on the liv

AW: Expressions with date function

2007-07-23 Thread Peter Schröder
hi andrew, i am not totally clear about that, but afaik you may not use that date() function in your expression. cayenne will put the right string of a date object to your query, if you pass a date as a parameter. take a look at named parameter expressions: http://cayenne.apache.org/doc20/build

AW: AW: Out of memory exception when creating a large number of objects

2007-07-23 Thread Peter Schröder
23 July 2007 15:53, Peter Schröder wrote: > i think that this is a dataContext-issue. every commited object stays in > the context, so you probably should create a new dataContext at some point. Sure ! but is it a bug or a feature ? The following methods : ctxt.getObjec

AW: Out of memory exception when creating a large number of objects

2007-07-23 Thread Peter Schröder
i think that this is a dataContext-issue. every commited object stays in the context, so you probably should create a new dataContext at some point. -Ursprüngliche Nachricht- Von: Jean-Paul Le Fèvre [mailto:[EMAIL PROTECTED] Gesendet: Montag, 23. Juli 2007 15:30 An: user@cayenne.apache.

AW: counting rows

2007-07-23 Thread Peter Schröder
hi jack, search the list on count query. -Ursprüngliche Nachricht- Von: Jack O'Connor [mailto:[EMAIL PROTECTED] Gesendet: Montag, 23. Juli 2007 12:50 An: user@cayenne.apache.org Betreff: counting rows A question about efficiency: Counting the number of rows in a table. Currently, I ru

commit exception after server restart

2007-07-19 Thread Peter Schröder
hi, we have some trouble with our clustered applications. after restarting one of the servers the user gets a commit exception (see below). i think that this is already reported as a bug, but jira seems to be down... https://issues.apache.org/cayenne/browse/CAY-796 is there something we can do

AW: paged query slow when fetching big lists

2007-06-28 Thread Peter Schröder
the speed of fixing things is amaizing... i wish that tapestry would have such a support! -Ursprüngliche Nachricht- Von: Andrus Adamchik [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 28. Juni 2007 10:11 An: user@cayenne.apache.org Betreff: Re: paged query slow when fetching big lists

AW: creating/saving transient objects to database

2007-06-22 Thread Peter Schröder
this approach has the downside that you may run into concurrency issues (check than act). you may get a duplicate even if you first check for an existing entry. this is really tricky in webapplications... kind regards, peter -Ursprüngliche Nachricht- Von: Fredrik Liden [mailto:[EMAIL PRO

AW: Converting timestamp to date for queries

2007-06-18 Thread Peter Schröder
hi kevin, i think that you can set DATE for the db-entity in the modeler. afaik, this has impact on the resultset you get. this was something i resently discovered, but i am not sure about what and why. kind regards peter -Ursprüngliche Nachricht- Von: Kevin Menard [mailto:[EMAIL PROTE

AW: Unit testing web apps

2007-06-14 Thread Peter Schröder
es down to how much > budget you have for your applications development. > > If you do, than that is great. You can also develop some load testing > capability at the same time. Just note is time consuming / expensive > to do so. > > regards Malcolm Edgar > > On 6/14/07,

AW: Unit testing web apps

2007-06-13 Thread Peter Schröder
hi kevin, i think that testing the ui is a very important part for a good quality web-application. it also helps understanding the webapp for new developers or reminding you of things that have been implemented in a sloppy way. it is poor that in most cases i dont take the time to write some te

AW: Unit testing web apps

2007-06-12 Thread Peter Schröder
hi fredrik, we use simple junit tests for testing the service layer of our webapps. in the service layer we receive a datacontext via the cayenne servlet-listener using DataContext.getThreadedDataContext(). so we do a DataContext.bindThreadedDataContext(newContext) in the setup-method of the u

AW: Cayenne Generated Classes in Web Service API

2007-06-08 Thread Peter Schröder
Peter, > -Original Message- > From: Peter Schröder [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 07, 2007 11:45 AM > To: user@cayenne.apache.org > Subject: AW: Cayenne Generated Classes in Web Service API > > hi michael, > > we did some basic testing on sendi

AW: Cayenne Generated Classes in Web Service API

2007-06-07 Thread Peter Schröder
hi michael, we did some basic testing on sending cayenne classes via axis 1.4. that didnt really work out, because persistent objects provide references to unserializable objects. i think that this might be handled by a custom de-/serializer, but we did no further investigation. kind regars,

missing links in 1.2 documentation

2007-06-06 Thread Peter Schröder
hi, there are several pages which dont have direct links to child-articles: f.e.: http://cayenne.apache.org/doc12/performance-tuning.html http://cayenne.apache.org/doc12/stored-procedures.html there are also some broken links: http://cayenne.apache.org/api/cayenne/org/objectstyle/cayenne/query/P

AW: Select Query on Table with no Primary Key

2007-06-06 Thread Peter Schröder
perhaps it helps to set fetchDataRows to true http://cayenne.apache.org/doc12/data-rows.html its just a guess -Ursprüngliche Nachricht- Von: Dave Merrin [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 6. Juni 2007 16:12 An: user@cayenne.apache.org Betreff: Select Query on Table with no P

AW: performing count

2007-06-05 Thread Peter Schröder
first of all: thank u very much for the fast support where do we put it? as a user of cayenne, i dont really care. as long as it is well documented! kind regards peter -Ursprüngliche Nachricht- Von: Andrus Adamchik [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 5. Juni 2007 15:42 An: us

AW: performing count

2007-06-03 Thread Peter Schröder
+1 from me -Ursprüngliche Nachricht- Von: Michael Gentry [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 1. Juni 2007 17:44 An: user@cayenne.apache.org Betreff: Re: performing count Looking at that CountQuery class makes me think we should actually add it to Cayenne as a utility class. Pe

AW: performing count

2007-06-01 Thread Peter Schröder
the entire table. Try: http://cwiki.apache.org/confluence/display/CAYDOC/Customizing+Queries Look at the "Indirect Queries" section at the bottom. That approach would be much faster. /dev/mrg On 6/1/07, Peter Schröder <[EMAIL PROTECTED]> wrote: > > hi, > > i am wo

performing count

2007-06-01 Thread Peter Schröder
hi, i am wondering about the perfomance-impact of using cayenne to performing an result-count. currently i am doing something like this, wich is very straight-forward. SelectQuery query = new SelectQuery(Tcomrecherche.class, qualifier); List list = context.perfo

AW: cayenne-modeler maven dependencies

2007-04-30 Thread Peter Schröder
://issues.apache.org/cayenne/browse/CAY-774 Andrus On Apr 30, 2007, at 12:04 PM, Peter Schröder wrote: > hi there, > > i could not find out where exactly we picked up the cayenne- > modeler-2.0.2.jar from our maven repo, but there was an > org.objectstyle dependency in there wich

cayenne-modeler maven dependencies

2007-04-30 Thread Peter Schröder
hi there, i could not find out where exactly we picked up the cayenne-modeler-2.0.2.jar from our maven repo, but there was an org.objectstyle dependency in there wich resultet in an build-error: org.objectstyle.cayenne cayenne-nod

AW: Jgroups config file

2007-04-29 Thread Peter Schröder
CayenneModeler. Could you open a bug report with the exception stack trace: http://issues.apache.org/cayenne/ Thanks Andrus On Apr 27, 2007, at 3:03 PM, Peter Schröder wrote: > hi, > > i currently disabled the cache-configuration from my data-domain > wich was configured through a jgroups

Jgroups config file

2007-04-27 Thread Peter Schröder
hi, i currently disabled the cache-configuration from my data-domain wich was configured through a jgroups config file. locally restarting my app i got an exception, that cayenne cant find the config-file wich i recently disabled. i had to manually delete the xml-tag from cayenne.xml. other wo

AW: postgres, idle in transaction

2007-04-27 Thread Peter Schröder
Tore. On Apr 27, 2007, at 8:31 , Peter Schröder wrote: > hi andrus, > > i know that this issue sucks, but we are forced to solve it. > > we did some further investigation of our live-environment and > noticed that these idle connections appear only while our > application i

AW: AW: AW: postgres, idle in transaction

2007-04-26 Thread Peter Schröder
hi andrus, i know that this issue sucks, but we are forced to solve it. we did some further investigation of our live-environment and noticed that these idle connections appear only while our application is plugged into our loadbalancer. first we thought that this could be an concurrency or loa

AW: postgres, idle in transaction

2007-04-24 Thread Peter Schröder
2] and see if that DBCP DataSource does the right thing? This may be an easier/ cleaner workaround than committing before queries. [1] https://issues.apache.org/cayenne/ [2] http://cayenne.apache.org/doc20/dbcpdatasourcefactory.html Thanks Andrus On Apr 24, 2007, at 9:48 AM, Peter Schröder wrot

postgres, idle in transaction

2007-04-23 Thread Peter Schröder
hi, we are still experiencing trouble with our postgres db and connections hanging "idle in transaction". we debugged the postgres driver and found out that he starts a transaction on every select-query but does not close it. cayenne does not seem to bother and re-uses these connections for th

level 3 caching

2007-04-19 Thread Peter Schröder
hi, i am currently investigating the use of cayennes cross jvm caching with jgroups, shown here http://cayenne.apache.org/doc12/object-caching.html and here http://cayenne.apache.org/doc12/configuring-caching-behavior.html my question is, if it is possible to implement a cross-jvm counter, that

AW: Cayenne web application tutorial

2007-04-12 Thread Peter Schröder
ack to you, causing (potentially) incorrect records being retrieved/updated. (At least the last time I looked at it...) The above isn't meant to detract from Steve's tutorial, either, which is great and we are the better for having it available. Thanks! /dev/mrg On 4/12/07, Peter Schröd

AW: Cayenne web application tutorial

2007-04-11 Thread Peter Schröder
s > > > On Apr 11, 2007, at 4:43 AM, Steve Wells wrote: > > > I put that tutorial on SF with a couple of minor updates: > > https://sourceforge.net/projects/tapcaycrud > > > > > > On 10/04/07, Peter Schröder <[EMAIL PROTECTED]> wrote: > >&

AW: Optimistic locking

2007-04-11 Thread Peter Schröder
hi marc, if both threads are notified of the update, there should be no need of the optimistic locking. you may use javas synchronization instead. but i am somewhat surprised that two different data-contexts are notified of a change of one object. kind regards, peter -Ursprüngliche Nachric

AW: Cayenne web application tutorial

2007-04-11 Thread Peter Schröder
: Re: Cayenne web application tutorial I put that tutorial on SF with a couple of minor updates: https://sourceforge.net/projects/tapcaycrud On 10/04/07, Peter Schröder <[EMAIL PROTECTED]> wrote: > > there is also a small tutorial using tapestry: > > http://web.aanet.com.au/web

AW: Cayenne web application tutorial

2007-04-09 Thread Peter Schröder
there is also a small tutorial using tapestry: http://web.aanet.com.au/websystems/start.html -Ursprüngliche Nachricht- Von: Malcolm Edgar [mailto:[EMAIL PROTECTED] Gesendet: Montag, 9. April 2007 12:27 An: user@cayenne.apache.org Betreff: Re: Cayenne web application tutorial Hi Reid,

AW: postgres, idle in transaction

2007-04-03 Thread Peter Schröder
unless your app starts hanging, or the pool size starts unexpectedly going up. Andrus On Apr 3, 2007, at 2:57 AM, Peter Schröder wrote: > hi there, > > we have some trouble with our postgres database using cayenne. our > application is not writing any data to the db, there is only

postgres, idle in transaction

2007-04-02 Thread Peter Schröder
hi there, we have some trouble with our postgres database using cayenne. our application is not writing any data to the db, there is only read-statements. nevertheless we have some connections in "idle in transaction" state, wich indicates some transactions not beeing properly closed. i found

AW: How do I filter on mysql date?

2007-03-16 Thread Peter Schröder
return records; -Ursprüngliche Nachricht- Von: Frank [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 16. März 2007 15:32 An: user@cayenne.apache.org Betreff: Re: How do I filter on mysql date? I am getting "between cannot be resolved" Thanks Frank - Original Message

AW: How do I filter on mysql date?

2007-03-16 Thread Peter Schröder
hi frank, what is the result you get? i would try it that way: Calendar c = new GregorianCalendar(); c.add(Calendar.DATE, -60); SelectQuery select = new SelectQuery(HRApplications.class, ExpressionFactory.between); List records = context.performQuery(select, ExpressionFacto

AW: AW: Store BitSet

2007-03-12 Thread Peter Schröder
- Von: Peter Karich [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 9. März 2007 21:41 An: user@cayenne.apache.org Betreff: Re: AW: Store BitSet Hi, Peter Schröder! > you may use > http://java.sun.com/j2se/1.4.2/docs/api/java/io/ObjectOutputStream.html > to serialize any given object. bu

AW: Datanode -> XML

2007-03-09 Thread Peter Schröder
hi, as for your testing-idea. i think there is a test-library for xml-data driven testing, but i cannot remember the name... -Ursprüngliche Nachricht- Von: Aristedes Maniatis [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 9. März 2007 11:25 An: [EMAIL PROTECTED] Betreff: Datanode -> XML

AW: AW: Java5: the expression of type list needs unchecked conversion

2007-03-09 Thread Peter Schröder
frameworks handle that (I suspect they don't)? Andrus On Mar 5, 2007, at 9:57 AM, Peter Schröder wrote: > you may provide the annotation @SuppressWarnings("unchecked") > this will probably remove the warning in your IDE. > > the warning occurs, because of the perfo

AW: Store BitSet

2007-03-08 Thread Peter Schröder
hi peter, you may use http://java.sun.com/j2se/1.4.2/docs/api/java/io/ObjectOutputStream.html to serialize any given object. but i guess thats not what you want. -Ursprüngliche Nachricht- Von: Peter Karich [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 8. März 2007 23:39 An: user@caye

AW: Deleting a data row?

2007-03-08 Thread Peter Schröder
This will clear the memory. On top of that, if you want all 80 deletes to be processed as a single transaction, you may do the above, but also wrap that code in a manual transaction: http://cayenne.apache.org/doc/understanding-transactions.html Andrus On Mar 6, 2007, at 6:51 PM, Pete

AW: How do I query on null or blank field?

2007-03-06 Thread Peter Schröder
you may also try the expression.fromString with the sql-skripting language of cayenne: http://cwiki.apache.org/confluence/display/CAYDOC/Scripting+SQLTemplate http://cayenne.apache.org/1_2/grammar/ExpressionParser.html wich seems to be a dead link! -Ursprüngliche Nachricht- Von: Frank

AW: Help: getting NPE at ObjectStoreGraphDiff.preprocess

2007-03-06 Thread Peter Schröder
i am not quite sure, but i think that you have to use context.createAndRegister(MyType.class); instead of context.newObject(MyType.class); -Ursprüngliche Nachricht- Von: Eric Floehr [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 6. März 2007 19:37 An: user@cayenne.apache.org Betreff:

AW: out of memory

2007-03-06 Thread Peter Schröder
i experienced the same problem. i thinks this was because of using objectFromDataRow() which puts the object into the dataRow-cache and will result in out-of-memory errors. as a workaround i used the raw-object/data-row object from the query. -Ursprüngliche Nachricht- Von: marco turc

AW: Java5: the expression of type list needs unchecked conversion

2007-03-04 Thread Peter Schröder
you may provide the annotation @SuppressWarnings("unchecked") this will probably remove the warning in your IDE. the warning occurs, because of the performQuery returns just a List-Object wich is not typesafe. -Ursprüngliche Nachricht- Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von

AW: Getting primary key of object after save

2007-02-26 Thread Peter Schröder
hi sam, i think that you can get the pk through the snapshot of the object after it has been committed to the context: http://cayenne.apache.org/doc12/accessing-pk-and-fk-values.html -Ursprüngliche Nachricht- Von: Sam Shah [mailto:[EMAIL PROTECTED] Gesendet: Montag, 26. Februar 2007 0

AW: AW: AW: AW: cayenne with jetty6

2007-02-16 Thread Peter Schröder
AM, Peter Schröder wrote: > 16 Feb 2007 09:55:03.928 [INFO] [main] > [org.objectstyle.cayenne.conf.JNDIDataSourceFactory] - failed > loading from local preferences > java.lang.ClassCastException: > org.objectstyle.cayenne.modeler.pref.PreferencesDataSourceFac

AW: AW: AW: cayenne with jetty6

2007-02-16 Thread Peter Schröder
this logger to DEBUG: log4j.logger.org.objectstyle.cayenne = DEBUG Andrus On Feb 14, 2007, at 2:31 AM, Peter Schröder wrote: > hi andrus, > > i get this: > > 2007-02-14 08:30:01.463::WARN: failed CayenneFilter > org.objectstyle.cayenne.ConfigurationException: [v.1.2.1 September

AW: AW: cayenne with jetty6

2007-02-13 Thread Peter Schröder
An: user@cayenne.apache.org Betreff: Re: AW: cayenne with jetty6 On Feb 13, 2007, at 11:19 AM, Peter Schröder wrote: > after that jetty:run started without class-cast exception. instead > cayenne could not find the jndi-resources. What output do you see on the console? Andrus

AW: cayenne with jetty6

2007-02-13 Thread Peter Schröder
g else more reliable). The workaround is to delete the preferences directory ($HOME/.cayenne/prefs), and recreate the data sources from scratch. Andrus On Feb 13, 2007, at 6:10 AM, Peter Schröder wrote: > hi there, > > i was trying to run the cayenne-filter with jetty6-maven-plugin,

cayenne with jetty6

2007-02-13 Thread Peter Schröder
hi there, i was trying to run the cayenne-filter with jetty6-maven-plugin, but it did not work out for me... even with including all dependencies to the jetty-plugin i failed to use the jndi-backup-mechanism, wich i use successfully witch the jetty-launcher. perhaps someone could add the docs

AW: how to call a custom query

2007-02-01 Thread Peter Schröder
hi frank, you may use the object-graph to execute the queries you want. there is no joining with cayenne-syntax. cayenne will translate your query into an sql-statement with any joins that will be nessessary. so query += " FROM schedules"; query += " INNER JOIN procedures ON schedules.procedu

AW: New user PK id question

2007-02-01 Thread Peter Schröder
did you set the pk-generation properly (database-generated) in the modeler? -Ursprüngliche Nachricht- Von: Frank [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 1. Februar 2007 15:23 An: user@cayenne.apache.org Betreff: New user PK id question Hello, I have a mysql table with a PK of i

AW: [ANN] New Web Site

2007-02-01 Thread Peter Schröder
looks really nice! ps cayenne rulz ;-) -Ursprüngliche Nachricht- Von: Andrus Adamchik [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 1. Februar 2007 14:55 An: user@cayenne.apache.org Betreff: [ANN] New Web Site As some may have noticed already, Cayenne website just moved, got a seri

AW: converting property-names to db-names

2007-01-24 Thread Peter Schröder
().lookupObjEntity(DataObject) brings back the ObjEntity for this DataObject. There you can find a list of all ObjAttributes and each ObjAttribute includes the information about the DbAttribute 2007/1/24, Peter Schröder <[EMAIL PROTECTED]>: > > hi, > > is there a cayenne method th

converting property-names to db-names

2007-01-24 Thread Peter Schröder
hi, is there a cayenne method that gives me the db-name of a property bye its cayenne-class-property? i searched the code but didnt find anything... kind regards peter

AW: help on relationship

2007-01-22 Thread Peter Schröder
did you call context.createAndRegister() on the new objects? -Ursprüngliche Nachricht- Von: Jun Bondoy [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 21. Januar 2007 07:18 An: user@cayenne.apache.org Betreff: Re: help on relationship Hi Michael, Thanks for the quick response..based on you