Hi Aristedes!
I submitted the issue here:
https://issues.apache.org/jira/browse/CAY-1216
Let me know if this works for you.
Regards,
Peter.
Hi Andrus!
> Thanks, maybe we'll finally update the examples for inclusion with the
> download.
That would be good.
But double check it :-)
I currently read though it and saw a mistake: in the clients pom there
should be cayenne-client instead of cayenne-server!
Regards,
Peter.
he xml for liquibase - althought this should work.
You have to define the schema manually.
Regards,
Peter.
t ... although ... I couldn't make it
working ;-))
Regards,
Peter.
Many-To-Many
relationship without a special meaning. In hibernate they will be mapped
to tables without an ID - only two FKs.
Isn't this possible in cayenne?
And is cayenne's schema migration [1] as powerful as e.g. liquibase ?
Regards,
Peter.
[1]
http://cayenne.apache.org/doc/migra
hapter(context)' and run the
client again, then there should be 'Artists:Pablo Picasso' visible (e.g.
check with the browser)
Hope someone can benefit from this.
Regards,
Peter.
[1]
2009-04-25 23:07:31.806::INFO: Logging to STDERR via
org.mortbay.log.StdErrLog
[jetty:run]
Configu
nothing happend to the
server.
Whats wrong? Should I use an older hessian jar or sth. like this?
It seems to me that also other people had problems with this [4].
I will try now the strandz.org example ...
Regards,
Peter.
[1]
http://www.strandz.org/rosterAppJars.zip
only some jars are necessary ...
nne-jdk1.4 jars?
I only see cayenne-jdk1.5-unpublished and cayenne-jdk1.6-unpublished in
the sources.
Has anyone successfully tried this example?
Regards,
Peter.
[1]
http://svn.apache.org/repos/asf/cayenne/main/trunk/docs/quick-start-rop/
[2]INFO: loading
for #1, and this is a bug IMO
> (and as I said, hopefully not a hard one to fix). If you can open a
> Jira on that, I'd appreciate it. If not, I can do it myself.
>
> Thanks,
> Andrus
>
>
>
> On Jan 13, 2009, at 6:21 PM, Javi Peter wrote:
> >
> > Hi a
attributes
> > Date: Mon, 12 Jan 2009 19:32:08 +0200
> >
> > So "account.mail" is a COLUMN name? Not a table + column name?
> >
> > Could you clarify please.
> >
> > Thanks,
> > Andrus
> >
> >
> > On Jan 12, 2009, at 7:
0200
>
> So "account.mail" is a COLUMN name? Not a table + column name?
>
> Could you clarify please.
>
> Thanks,
> Andrus
>
>
> On Jan 12, 2009, at 7:10 PM, Javi Peter wrote:
>
> >
> > Hi,
> >
> > each time I reverse engineer a data
Hi,
each time I reverse engineer a database schema with dots (e.g. "mail.account"),
the modeler hangs. If I hit Validate Project, it shows the exception shown at
the end of the email.
It also happens if I create manually the ObjAttribute.
Any ideas of why this happens and how to workaround thi
Hi Daniel,
it seems to me that
CayenneDataObject.addToManyTarget(String targetName, DataObject obj,
boolean reverse);
and
CayenneDataObject.setToOneTarget(String targetName, DataObject obj,
boolean reverse);
could do the job for you.
Am I right?
Peter.
pleJTableDataBinding
Peter.
(or
superclass) of Meeting that would never be persisted.
Thank you Mike! That would be very very good :-)
Does any body has more information on that subject?
Peter.
/feature request [3]?
3. Are there other ORM's that solve this. (Not worth to exchange, but
worth to know :-)
4. Could JPA help me here or will cayenne silently 'add the meetings' as
in normal cayenne setup?
Bye,
Peter.
[1]
http://objectstyle.org/cayenne/lists/cayenne-user/2007
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
to avoid that?
kind regards,
peter
STACK:
org.objectstyle.cayenne.CayenneRuntimeException
[v.1.2.3 May 7 2007] Commit Exception
unlabeledMessage: Commit Exception
Stack Trace:
*
org.objectstyle.cayenne.access.DataContext.flushToParent(DataContext.java:1290
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
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
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,
tests on that...
kind regards
peter
-Ursprüngliche Nachricht-
Von: Kevin Menard [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 13. Juni 2007 20:34
An: user@cayenne.apache.org
Betreff: RE: Unit testing web apps
> -Original Message-
> From: Malcolm Edgar [mailto:[EMAIL PRO
unit-test.
for testing the webapp there are several possibilites: html-unit, selenium ...
kind regards
peter
-Ursprüngliche Nachricht-
Von: Fredrik Liden [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 13. Juni 2007 02:47
An: user@cayenne.apache.org
Betreff: Unit testing web apps
Do you
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
,
peter
-Ursprüngliche Nachricht-
Von: Michael Lepine [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 7. Juni 2007 17:36
An: user@cayenne.apache.org
Betreff: Cayenne Generated Classes in Web Service API
This may be off topic but hopefully it's not considered to be.
I am resear
/ProcedureQuery.html
http://cayenne.apache.org/api/cayenne/org/objectstyle/cayenne/query/SelectQuery.html
or
http://cayenne.apache.org/grammar/ExpressionParser.html
this is just what i found the last 5 minutes :-[
kind regards
peter
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
+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
hints on how to handle this?
kind regards,
peter
forgott to look into jira before writing the note.
you once submitted a patch for WebApplicationContextFilter to work with
jetty6-maven-plugin. will this be included into x.3? (i think it was this one
http://people.apache.org/~aadamchik/patched/cayenne-1.2-02162007.jar )
kind regards,
peter
-nodeps
2.0.2
seems that this is in the distributed version:
http://mvnrepository.com/artifact/org.apache.cayenne/cayenne-modeler/2.0.2
kind regards,
peter
done:
https://issues.apache.org/cayenne/browse/CAY-783
-Ursprüngliche Nachricht-
Von: Andrus Adamchik [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 27. April 2007 18:43
An: user@cayenne.apache.org
Betreff: Re: Jgroups config file
Hi Peter,
I actually suspect this is a bug in
workaround was to choose 'standard configuration'
radiobutton and then disable the shared cache.
i am a little confused, cause my team-mate told me that cayenne wills kipp
using shared-caching while it fails to find the configuration-file. is that
right?
kind regards,
peter
hi tore,
thank you for the hint, we are thankfull for all the help.
kind regards
peter
-Ursprüngliche Nachricht-
Von: Tore Halset [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 27. April 2007 08:52
An: user@cayenne.apache.org
Betreff: Re: postgres, idle in transaction
Hello.
Creating
the
transaction will not put to commit?
kind regards
peter
-Ursprüngliche Nachricht-
Von: Andrus Adamchik [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 26. April 2007 13:47
An: user@cayenne.apache.org
Betreff: Re: AW: AW: postgres, idle in transaction
On Apr 26, 2007, at 1:14 PM
hi andrus,
thank u for the reply, i will investigate on your proposals and give some
feedback.
kind regards,
peter
-Ursprüngliche Nachricht-
Von: Andrus Adamchik [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 24. April 2007 10:24
An: user@cayenne.apache.org
Betreff: Re: postgres, idle
ery select-query as a
workaround. setting autoCommit to true would have the same effect, but i dont
like that idea...
kind regards,
peter
, that wont
be bitten by concurrency issues.
f.e.:
synchronized incrementCount(){
myObject.setCount(myObject.getCount() + 1)
}
if properly used, this would be sufficent in a single jvm to avoid issues.
can i achieve something like that within level-3-caching?
kind regards,
peter
we use hashvalues to detect hacking-attempts. we create a md5 hash with the
encoded value and some secret key and put it with the other parameters, so that
the receiving component can check if the value has been edited bye comparing
hashvalues.
kind regards peter
-Ursprüngliche Nachricht
2007 01:08
An: [EMAIL PROTECTED]
Betreff: Re: Cayenne web application tutorial
Thanks for the feedback guys. Peter, I'm very glad it is actually helping
people.
Cheers,
Steve
On 11/04/07, Andrus Adamchik <[EMAIL PROTECTED]> wrote:
>
> I put a link to the tutorial under "
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
hi steve,
i really appreciate your tutorial, it was a very good entry point for learning
tapestry, cayenne and maven.
kind regards,
peter
-Ursprüngliche Nachricht-
Von: Steve Wells [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 11. April 2007 02:43
An: user@cayenne.apache.org
Betreff
Mike Kienenberger schrieb:
> On 4/10/07, Peter Karich <[EMAIL PROTECTED]> wrote:
>> Do you mean that "nonpersistent -> (non)persistent" will be complicated?
>> Why? I can do the following:
>>
>> public void addToManyTarget(O
nonpersistent-object-list, right?
Another question: How does cayenne hold objects in memory?
As a normal reference, as WeakReference or even as PhantomReference?
Peter.
uot;misc", false);
and
nonpersistentObj.setToOneTarget(persistentObj, "misc",
false);
I have to think about it again,
Peter Karich.
___
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
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,
I simply want to mix persistent and nonpersistent objects.
(they have ToOne and ToMany relations)
But without large memory consumption and NPE's.
Every comment and idea will help :-)
Thank you, Peter.
[1] Mike wrote:
Temporary is unregistered. Or marked as deleted but registered.
Your workaroun
-).
we have a lot of background/scheduled tasks in our app, so we dont really know
where the problem occurs. currently we are searching our logs to find something
usefull.
kind regards,
peter
-Ursprüngliche Nachricht-
Von: Andrus Adamchik [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 3. April
.
i found a link about hibernate and this issue:
http://www.ashtech.net/~syntax/blog/archives/56-Hibernate-and-PostgreSQL-Require-Transactions.html
is there a similar approach to this for cayenne?
kind regards,
peter
ublic static EventManager getDefaultManager() {
return defaultManager;
}
OR a full synchronized method.
Peter.
Mike Kienenberger schrieb:
> Temporary is unregistered. Or marked as deleted but registered.
> Your workaround seems reasonable.
My unit test passes, after the "Object getID()" change.
Thank you for that hint.
I'll be back tomorrow if I get other/furthe
terval's with
attributes and 2 "toOneTargets" although they are not registered (is
this *temporary* or is "registered but not commited" *temporary*?)
My workaround is to collect all not registered objects in
kinds of object ids for your
> non-persistent objects, and using a different type will guarantee that
> a persistent and non-persistent object will never be equal to each
> other.
And what about the NullPointerExce
;obj1 == obj2".
I think the first line is always true, what about the second?
Then I can create a SimilarEntry which holds a TimeInterval and
"overloads" the equals method by comparing by the pointers (&q
for some calculation and not for persistence
Is there another approach?
Thank you,
Peter Karich.
___
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail:
http://mail.yahoo.de
room",room,true)
at caybug.TimeInterval.setRoom(TimeInterval.java:10)
Thank you,
Peter Karich.
___
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail:
http://mail.yahoo.de
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
hi peter :-)
this is the exact same way we use it to store generic serializable java-objects
in our db.
//is closing necessary: (?)
o.close();
YES, you should always close streams. its almost done bye the runtime, but you
cannot be sure.
kind regards
peter
-Ursprüngliche Nachricht
dependency I run into memory problems, but
for simple property based object and one or two relations it is very
good and fast.
Bye, Peter.
___
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo
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. but i guess thats not what you want.
Ah thank you! with the addition of ByteArrayOutputStream it is very easy:
//writing:
ByteArrayOutputSt
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
rther documentation on that subject? Because I can't find
useful informations in javadocs and google results.
Does anyone has a simple example of reading+writing an arbitrary object?
Thank you,
Peter Karich.
___
Telefonate ohne weit
i think that there are different aproaches to this issue. you might use a
custom query to delete the entry. or perhaps something like this:
http://cayenne.apache.org/doc20/api/cayenne/org/apache/cayenne/query/DeleteBatchQuery.html
i didnt try that one jet.
kind regards,
peter
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
: cayenne with jetty6
Hi Peter,
[I stripped message that you quote, since it has no relation to the
topic you started.]
> perhaps someone could add the docs http://cayenne.apache.org/doc/
> tutorial-webapp.html with some usefull information about jetty6.
I don't think this is Jetty6
http://cayenne.apache.org/doc/tutorial-webapp.html with some usefull
information about jetty6.
kind regards,
peter
-Ursprüngliche Nachricht-
Von: Aristedes Maniatis [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 12. Februar 2007 04:51
An: user@cayenne.apache.org
Betreff: Re: Version 2 doc
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
91 matches
Mail list logo