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
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"
@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
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
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
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.
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
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
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
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
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
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,
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
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
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
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,
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
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
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
+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
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
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
://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
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
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
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
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
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
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
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
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
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
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:
> >&
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
: 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
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,
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
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
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
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
-
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
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
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
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
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
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
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:
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
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
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
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
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
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
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,
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
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
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
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
().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
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
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
61 matches
Mail list logo