Re: Remote Example

2009-04-29 Thread Peter Karich
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.

Re: Remote Example

2009-04-28 Thread 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.

Re: Hibernate Migration

2009-04-27 Thread Peter
he xml for liquibase - althought this should work. You have to define the schema manually. Regards, Peter.

Re: Hibernate Migration

2009-04-27 Thread Peter
t ... although ... I couldn't make it working ;-)) Regards, Peter.

Hibernate Migration

2009-04-26 Thread Peter Karich
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

Re: Remote Example

2009-04-25 Thread Peter Karich
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

Re: Remote Example

2009-04-25 Thread Peter
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 ...

Remote Example

2009-04-23 Thread Peter
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

RE: Modeler Exception for using dots on attributes

2009-01-13 Thread Javi Peter
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

RE: Modeler Exception for using dots on attributes

2009-01-13 Thread Javi Peter
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:

RE: Modeler Exception for using dots on attributes

2009-01-13 Thread Javi Peter
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

Modeler Exception for using dots on attributes

2009-01-12 Thread Javi Peter
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

Re: Suggestion: Don't Fault Relationship On Add

2007-12-11 Thread Peter Karich
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.

Re: Populating JTable and JList with data

2007-11-12 Thread Peter Karich
pleJTableDataBinding Peter.

Re: Unregistered Objects

2007-08-13 Thread Peter Karich
(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.

Unregistered Objects

2007-08-10 Thread Peter Karich
/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

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
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

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

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

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
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

AW: Unit testing web apps

2007-06-12 Thread Peter Schröder
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

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
, 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

missing links in 1.2 documentation

2007-06-06 Thread Peter Schröder
/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

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

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
hints on how to handle this? kind regards, peter

AW: cayenne-modeler maven dependencies

2007-04-30 Thread Peter Schröder
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

cayenne-modeler maven dependencies

2007-04-30 Thread Peter Schröder
-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

AW: Jgroups config file

2007-04-29 Thread Peter Schröder
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

Jgroups config file

2007-04-27 Thread Peter Schröder
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

AW: postgres, idle in transaction

2007-04-27 Thread Peter Schröder
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

AW: AW: AW: postgres, idle in transaction

2007-04-26 Thread Peter Schröder
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

AW: postgres, idle in transaction

2007-04-24 Thread Peter Schröder
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

postgres, idle in transaction

2007-04-23 Thread Peter Schröder
ery select-query as a workaround. setting autoCommit to true would have the same effect, but i dont like that idea... kind regards, peter

level 3 caching

2007-04-19 Thread Peter Schröder
, 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

AW: Cayenne web application tutorial

2007-04-12 Thread Peter Schröder
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

AW: Cayenne web application tutorial

2007-04-11 Thread Peter Schröder
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 "

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

AW: Cayenne web application tutorial

2007-04-11 Thread Peter Schröder
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

Re: Temporary Objects

2007-04-10 Thread Peter Karich
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

Re: Temporary Objects

2007-04-10 Thread Peter Karich
nonpersistent-object-list, right? Another question: How does cayenne hold objects in memory? As a normal reference, as WeakReference or even as PhantomReference? Peter.

Re: Temporary Objects

2007-04-10 Thread peter karich
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

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,

Re: Temporary Objects

2007-04-06 Thread Peter Karich
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

AW: postgres, idle in transaction

2007-04-03 Thread Peter Schröder
-). 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

postgres, idle in transaction

2007-04-02 Thread Peter Schröder
. 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

Too many EventManager's?

2007-03-29 Thread Peter Karich
ublic static EventManager getDefaultManager() { return defaultManager; } OR a full synchronized method. Peter.

Re: Temporary Objects

2007-03-27 Thread Peter Karich
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

Re: Temporary Objects

2007-03-27 Thread Peter Karich
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

Re: Temporary Objects

2007-03-27 Thread Peter Karich
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

Re: Temporary Objects

2007-03-27 Thread Peter Karich
;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

Re: Temporary Objects

2007-03-27 Thread Peter Karich
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

Temporary Objects

2007-03-26 Thread Peter Karich
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

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
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

Re: Datanode -> XML

2007-03-10 Thread Peter Karich
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

Re: AW: Store BitSet

2007-03-09 Thread Peter Karich
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

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

Store BitSet

2007-03-08 Thread Peter Karich
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

AW: Deleting a data row?

2007-03-08 Thread Peter Schröder
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

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
: 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

cayenne with jetty6

2007-02-13 Thread Peter Schröder
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

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