[ANN] New location of the mailing lists

2007-01-17 Thread Andrus Adamchik
Hi everybody, As you've seen from Joe's yesterday's email, we've got new locations for Cayenne mailing lists, corresponding to the new status of the project at Apache. No action needs to be taken by subscribers - all subscriptions are preserved. Note however that you should use the new ad

[ANN] Cayenne 2.0.2. and 1.2.2 released

2007-01-18 Thread Andrus Adamchik
I am glad to announce releases of two branches of Cayenne, 2.0.2 and 1.2.2. Check out the blog entry for details: http://cwiki.apache.org/confluence/display/CAY/2007/01/18/ I am still working on publishing Maven artifacts that should become available in a few days. Andrus

Re: Self joins

2007-01-18 Thread Andrus Adamchik
Hmm... looks like a bug in the prefetch code. Could you possible open a bug report, somebody will take a look. http://issues.apache.org/cayenne Thanks Andrus On Jan 18, 2007, at 11:14 AM, Patric Lichtsteiner wrote: Hi I'm using Cayenne 2.0.1 and I'm working with a model with a self join

Re: Creating new object in validateForInsert or validateForSave (are you certain?) (Oups...)

2007-01-22 Thread Andrus Adamchik
ataContext.java:1375) at ch.rodano.role.model.Scope.scopeWithShortNameInContext (Scope.java:18) at ch.rodano.role.model.Registry.validateForInsert (Registry.java:39) On Jan 17, 2007, at 8:53 AM, Andrus Adamchik wrote: Hi Alex, Yes you can do that. Validation routine is ex

Re: Creating new object in validateForInsert or validateForSave (are you certain?) (Oups...)

2007-01-23 Thread Andrus Adamchik
, I was with version 2.0.1-incubating (with Maven). Is 2.0.2 already available through Maven? On Jan 22, 2007, at 12:01 PM, Andrus Adamchik wrote: Actually you may want to upgrade to 2.0.2 - you may be affected by this bug that was fixed in the last release: https://issues.apache.org/cayenne

Re: deleteObject() and localObject() and object states

2007-01-29 Thread Andrus Adamchik
Hi Marcin, Just got some time to try it out. I am seeing somewhat different (still incorrect) behavior (is this because of the difference in Cayenne version?). I need to investigate this some more, so I opened this bug report: http://issues.apache.org/cayenne/browse/CAY-742 Andrus On J

Re: security

2007-01-31 Thread Andrus Adamchik
Hi Carl, To be honest a few ROP projects that I've done used all-or-nothing security (if you are authenticated, you can do anything). Still I've been also thinking about more fine-grained approach. My solution would be to set up a custom 'org.apache.cayenne.DataChannel' decorator, adding

Re: security

2007-01-31 Thread Andrus Adamchik
On Jan 31, 2007, at 4:40 PM, Juergen Saar wrote: What I'm still missing are user-depended DataNodes ... we have several installations with usergroups with different databases DataDomains were initially intended to address that. With some manual metadata manipulation, this is still a great o

[ANN] New Web Site

2007-02-01 Thread Andrus Adamchik
As some may have noticed already, Cayenne website just moved, got a serious facelift, and started to use Confluence as a CMS in the backend: http://cayenne.apache.org/ http://cayenne.apache.org/2007/02/01/new-web-site.html Thanks to Bruce and Ari for all the work they've put into it! Looks r

Re: [ANN] New Web Site

2007-02-01 Thread Andrus Adamchik
Not sure if that's some ASF "branding script" that overrides the site image, but this is the image that I placed on the site: https://svn.apache.org/repos/asf/cayenne/site/trunk/tlp-site/target/ favicon.ico I may try to put it in a subdirectory and link from there. Andrus On Feb 1, 2007,

Re: New user PK id question

2007-02-01 Thread Andrus Adamchik
Yes, until 3.0 the logic in Cayenne worked like this: 1. if you don't map PK as an object property, Cayenne will generate the PK. 2. if you do map it, you must provide it yourself. (3.0 relaxed this restriction, but 3.0 is not officially released yet) Do not add the id to the properties expo

Re: [ANN] New Web Site

2007-02-01 Thread Andrus Adamchik
It is back. Looks really nice indeed. Andrus On Feb 1, 2007, at 4:08 PM, Michael Gentry wrote: PS. Any chance of getting the mini-pepper back in the URL bar? I loved that little touch. :-)

Re: Unsubscribe

2007-02-02 Thread Andrus Adamchik
Hi Howard, Sometimes unsubscribe confirmation emails get stuck in the spam filters. I just unsubscribed you manually. Let me know if this didn't work. Andrus On Feb 2, 2007, at 2:12 AM, Howard Treisman wrote: Hi I just followed the instructions to unsubscribe from the "new" mailing list

Re: security

2007-02-02 Thread Andrus Adamchik
On Jan 31, 2007, at 7:50 PM, Carl Mosca wrote: Is there a published timetable for 3.0? We are preparing the first milestone (alpha) of 3.0. It should go out pretty soon. Otherwise - no, there's no timetable (standard open source disclaimer about volunteer labour goes here), but there is a

Re: subclassing standard Java types

2007-02-05 Thread Andrus Adamchik
IIRC the problem wasn't in JDBC or Cayenne per se. It was "shortcuts" taken by Hessian serialization (don't recall the exact details). It is worth trying it again with the new version of hessian that we are using now. Andrus On Feb 4, 2007, at 2:37 AM, Aristedes Maniatis wrote: Some time

Re: can't find procedure without a parameter on Postgres

2007-02-08 Thread Andrus Adamchik
Bryan, this is a bug, I can confirm that: https://issues.apache.org/cayenne/browse/CAY-750 I fixed it on trunk (Cayenne 3.0). Will apply it to 2.0 and 1.2 branches shortly. Andrus On Feb 6, 2007, at 1:35 PM, Bryan Lewis wrote: I had this code working on an Oracle8 database: Pro

Re: [OT] feathercast

2007-02-08 Thread Andrus Adamchik
Actually this is mentioned on our mailing lists page: http:// cayenne.apache.org/mailing-lists.html And the URL was a bit different (zeemaps.com doesn't work for me) : http://www.zeesource.net/maps/map.do?group=1128 (BTW, Tore, as an admin could you please delete my marker in Moscow? I'll ad

Re: [OT] feathercast

2007-02-08 Thread Andrus Adamchik
Not updated at all. http://www.zeemaps.com/map.do?group=1128 Ok this URL started to work for me as well (it is a redirect). Also it took me a while to remember that you have to log in with password "cay" to add new markers. Andrus

Re: Version 2 doc linking

2007-02-11 Thread Andrus Adamchik
Hi Ari, On Feb 9, 2007, at 8:29 PM, Aristedes Maniatis wrote: Just a heads up that I've finished linking together all the children in the version 2 docs. It is a little time consuming, so I don't think I'll do version 1.2, since the pages are identical to version 2.0 almost everywhere.

Re: cayenne with jetty6

2007-02-13 Thread Andrus Adamchik
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-related at all. even with inclu

Re: cayenne with jetty6

2007-02-13 Thread Andrus Adamchik
On Feb 13, 2007, at 10:48 AM, Andrus Adamchik wrote: 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-related at all. Although providing a sample Jetty JNDI DataS

Re: getting bad connection

2007-02-13 Thread Andrus Adamchik
Frank, after a number of calls, it fails. it would help if you provide the details of your problems, like Exception stack traces. My guess will be that you are not closing the connections\. You must call Connection.close() every time after you finish working with a connection. Andrus

Re: AW: cayenne with jetty6

2007-02-13 Thread Andrus Adamchik
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

Re: How do you deal with AS400 schemas

2007-02-13 Thread Andrus Adamchik
Hmm... I'd say this is a bug in Cayenne class generator. We need to replace non-java chars with something more appropriate. Could you please open a bug report: https://issues.apache.org/cayenne/ Thanks Andrus On Feb 13, 2007, at 11:37 AM, Frank wrote: Hello, Cayenne is generating code th

Re: How do you deal with AS400 schemas

2007-02-13 Thread Andrus Adamchik
ns of Cayenne. Thanks Andrus On Feb 13, 2007, at 11:51 AM, Frank wrote: Hi Andrus, I have submitted this as a open a bug report. Frank - Original Message - From: "Andrus Adamchik" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 13, 2007 11:40 AM Subject: Re: How d

Re: AW: AW: cayenne with jetty6

2007-02-14 Thread Andrus Adamchik
on(Configuration.java:312) ... 33 more -Ursprüngliche Nachricht- Von: Andrus Adamchik [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 13. Februar 2007 17:23 An: user@cayenne.apache.org Betreff: Re: AW: cayenne with jetty6 On Feb 13, 2007, at 11:19 AM, Peter Schröder wrote: after

OutOfMemoryErrors

2007-02-14 Thread Andrus Adamchik
Frank, thanks for confirming the fix. Also please send a message with a different subject whenever you start a new topic (I changed the reply subject to reflect the changing topic). Now, OutOfMemoryErrors... There are two ways to address them: 1. increase the available heap size: http://w

Re: AS400 mapping error

2007-02-14 Thread Andrus Adamchik
Yeah, expression parser can't cope with special chars. But you can always assemble the expression by hand: Expression e = ExpressionFactory.matchDbExp (Bsypemp.EMHSPPOUND_PK_COLUMN, new Integer(1)); e = e.andExp(ExpressionFactory.likeExp(Bsypemp.EMYLNM_PROPERTY, lname +"%")); Andrus On Fe

Re: Problem with DataPort & Tomcat

2007-02-14 Thread Andrus Adamchik
Just a guess without digging through the code details - a different DataSource implementation in Tomcat (DBCP) does something differently. Try using the same DataSource you used in Jetty. Andrus On Feb 14, 2007, at 9:05 AM, Øyvind Harboe wrote: We've been using a modified DataPort w/Jetty

Re: Cayenne doc link failure

2007-02-14 Thread Andrus Adamchik
Thanks for pointing it out - that's an old link, I'll fix it. Andrus On Feb 14, 2007, at 11:49 AM, Frank wrote: Hello, I click on the documentation link Cayenne Documentation - v. 1.2 (STABLE) User Guide: General information on how to get started with Cayenne, main Cayenne concepts, API de

Re: OutOfMemoryErrors (solved)

2007-02-15 Thread Andrus Adamchik
You are being too picky. Why is this not a solution? Default 64m heap size for the JVM is not enough for most applications nowadays ;-) Andrus On Feb 15, 2007, at 2:47 AM, Juergen Saar wrote: This is a workaround, but not a solution ... -sorry- --- Juregen --- 2007/2/14, Frank <[EMAIL PRO

Lifecycle callback API changes

2007-02-15 Thread Andrus Adamchik
Note to the users of much advertised, but not yet officially released lifecycle callback API. There were some changes to simplify listener registration (and to make backend more consistent). Check out the updated documentation page: http://cayenne.apache.org/doc/lifecycle-callbacks.html Su

Re: Problem with DataPort & Tomcat

2007-02-15 Thread Andrus Adamchik
Did I find a bug or is this expected behavior? Don't know. Generally DBCP pool is very stable. So it is hard to say without actually getting to the cause of the problem. Andrus On Feb 15, 2007, at 1:57 PM, Øyvind Harboe wrote: On 2/14/07, Andrus Adamchik <[EMAIL PROTECTED]> w

Re: What version of JGroups do people use?

2007-02-16 Thread Andrus Adamchik
I've been using 2.4CR2 for the last 4 months. Although I am using it in the context of Cayenne/OSCache combo, with targeted invalidation of named cache groups. It is not as transparent as full object sync provided by Cayenne, but it significantly reduces the cluster traffic. Not sure how we

Re: Cayenne and Daylight Savings Time Change?

2007-02-16 Thread Andrus Adamchik
I second that - Cayenne relies on the JDK, JDBC driver and the database to do the right thing. Those three can of course give you lots of headache... http://www.objectstyle.org/cayenne/lists/cayenne-user/2006/12/0107.html Andrus On Feb 15, 2007, at 11:14 PM, Michael Gentry wrote: I'm pret

Re: AW: AW: AW: cayenne with jetty6

2007-02-16 Thread Andrus Adamchik
On Feb 16, 2007, at 3:57 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.PreferencesDataSourceFactory at org.o

Re: cayenne with jetty6

2007-02-16 Thread Andrus Adamchik
); On Feb 16, 2007, at 10:21 AM, Peter Schröder wrote: jey! kick ass! it works! what did you change? is it only a 1.2 problem? -Ursprüngliche Nachricht- Von: Andrus Adamchik [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 16. Februar 2007 16:02 An: user@cayenne.apache.org Betreff: Re:

Re: SQLTemplate fetchLimit

2007-02-17 Thread Andrus Adamchik
On Feb 16, 2007, at 2:36 PM, Bryan Lewis wrote: Just checking my understanding of something... Does it make any sense to call setFetchLimit() on a SQLTemplate? We're supplying the raw SQL so I would think we'd have to hand-craft the fetch limit as well, say with a 'rownum' or 'limit'. Reall

Re: Creating a GROUP BY query

2007-02-17 Thread Andrus Adamchik
Hi Dorian, As is the case with most ORM technologies, there is an "object query syntax" and "db query syntax". Cayenne supports GROUP BY in the later case via SQLTemplate. The result of course can be mapped to objects: http://cayenne.apache.org/doc/sqltemplate-query.html http://cayenne.apac

Re: Creating a GROUP BY query

2007-02-18 Thread Andrus Adamchik
On Feb 18, 2007, at 7:02 AM, Dorian wrote: I am asking because every time I regenerate the xml with the Cayenne Modeler, those queries are deleted. This doesn't sound right, do you have more details on how this happens? Andrus

Re: entities with calculated fields

2007-02-19 Thread Andrus Adamchik
On Feb 19, 2007, at 12:13 PM, Malcolm Edgar wrote: I think Andrus is the right person to answer your question, but I do recall a conversation where the intention was for derived dbentities to be removed. True - that was an ugly and limited workaround. We do need to get rid of it. SQLTemp

Re: entities with calculated fields

2007-02-20 Thread Andrus Adamchik
ou can do a relationship count as a EOF derived column. Andrus On Feb 20, 2007, at 2:21 PM, Aristedes Maniatis wrote: On 20/02/2007, at 1:43 AM, Andrus Adamchik wrote: I think Andrus is the right person to answer your question, but I do recall a conversation where the intention was f

Re: Model many to many

2007-02-20 Thread Andrus Adamchik
By default Cayenne creates "unflattened" view of the database. You will need to manually flatten the relationships: http://cayenne.apache.org/doc/cayennemodeler-flattened- relationships.html Andrus On Feb 20, 2007, at 9:56 AM, JR Ruggentaler wrote: I am having some trouble modeling many

Re: possible bug / memory leak in DispatchQueue and EventManager?

2007-02-21 Thread Andrus Adamchik
Seems like your assessment of the EventManager leaking is correct. Now the cause is not that clear. A shot in the dark - this is due to a combination of lots of spare memory in JVM (so weak references are not collected fast enough) and slow custom 'equals' and 'hashCode' methods in invocati

Re: AW: possible bug / memory leak in DispatchQueue and EventManager?

2007-02-21 Thread Andrus Adamchik
e log files. ayhan -Ursprüngliche Nachricht- Von: Andrus Adamchik [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 21. Februar 2007 14:17 An: user@cayenne.apache.org Betreff: Re: possible bug / memory leak in DispatchQueue and EventManager? Seems like your assessment of the EventMa

Re: AW: AW: possible bug / memory leak in DispatchQueue and EventManager?

2007-02-21 Thread Andrus Adamchik
ought... -Ursprüngliche Nachricht- Von: Andrus Adamchik [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 21. Februar 2007 14:49 An: user@cayenne.apache.org Betreff: Re: AW: possible bug / memory leak in DispatchQueue and EventManager? Do you see DataContext instances in the memory profile? I wonder how ma

Re: Using Cayenne as a JPA provider in a Web Server

2007-02-21 Thread Andrus Adamchik
Hi Lasantha, We started on the JPA Guide [1], but it doesn't have much user information yet. Would be nice to get it going, if possible - using your experience ;-) For now the procedure is roughly the following: * Build Cayenne trunk from source [2] (we need to start publishing snapshots

Re: Cayenne vs JPA tools

2007-02-25 Thread Andrus Adamchik
Yep - JPA work progressed greatly. Cayenne 3.0 version can be viewed as "Cayenne Classic" and "Cayenne JPA" working in the same runtime. My opinion is that standard JPA API hides too much stuff under the hood, so a real application will end up using provider specific features in some form a

Re: AW: Getting primary key of object after save

2007-02-26 Thread Andrus Adamchik
That's an old piece of docs. It still works though, but it is much easier to use DataObjectUtils: http://cayenne.apache.org/doc12/dataobjectutils.html Andrus On Feb 26, 2007, at 10:33 AM, Peter Schröder wrote: hi sam, i think that you can get the pk through the snapshot of the object af

Re: Cayenne vs JPA tools

2007-02-26 Thread Andrus Adamchik
On Feb 25, 2007, at 5:53 PM, Dov Rosenberg wrote: We are already going thru a lot of changes to migrate from EOF to Cayenne - I really don't want to have to radically rebuild our app again when Cayenne JPA rolls around. The plan is for Cayenne Classic and Cayenne JPA to coexist: * They a

Re: Cayenne vs JPA tools

2007-02-26 Thread Andrus Adamchik
e our development? Thanks in advance Dov Rosenberg On 2/26/07 8:30 AM, "Andrus Adamchik" <[EMAIL PROTECTED]> wrote: On Feb 25, 2007, at 5:53 PM, Dov Rosenberg wrote: We are already going thru a lot of changes to migrate from EOF to Cayenne - I really don't want to have to radic

Re: Cayenne vs JPA tools

2007-02-26 Thread Andrus Adamchik
On Feb 26, 2007, at 6:53 PM, Dov Rosenberg wrote: For the JPA compliance will Cayenne generate the annotations needed for the JPA when the stub classes are generated? I am still learning JPA but it seems that might be a useful thing if you were in a Java 5 environment. This works the other

Re: Cayenne vs JPA tools

2007-02-26 Thread Andrus Adamchik
On Feb 26, 2007, at 5:45 PM, Dov Rosenberg wrote: Is there a build available that supports any of the JPA functionality yet? Here is a preview nightly build from SVN trunk, with cross-platform runnable Modeler jar: http://people.apache.org/~aadamchik/nightly/02262007/cayenne-3.0- SNAPSH

Re: Must class qualifier be an entire field?

2007-02-27 Thread Andrus Adamchik
This works. But of course it is up to the programmer to ensure that the qualifier is built in such a way that multiple subclasses do not overlap. Andrus On Feb 27, 2007, at 4:24 PM, Mike Kienenberger wrote: I've not used single-table inheritance, but I'm pretty sure the qualifier is just

Re: security - revisited

2007-02-27 Thread Andrus Adamchik
Well, think of it this way - Cayenne ROP provides the data model and a way to add hooks to the runtime. These are the two pieces that can be used to implement a custom security mechanism. None of the security features are built in Cayenne, but it allows adding them. So answering Carl's ques

Re: "PK Generation Strategy: Database-Generated" doesn't work

2007-03-01 Thread Andrus Adamchik
Hi Manuel, Per http://cayenne.apache.org/doc/generated-columns.html DB-generated pk depends on support of this feature by the underlying JDBC driver. Our testing showed that it only works in MySQL, Derby and SQLServer. For HSQLDB this feature is turned off (I just tried it on HSQL 1.8.0.4

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

2007-03-05 Thread Andrus Adamchik
Squashing consequences of one Java 5 feature with another... nice :-) I wonder how we can address this at the framework level, without having to support two separate jdk-specific builds of Cayenne? Wonder how other frameworks handle that (I suspect they don't)? Andrus On Mar 5, 2007, at

Re: expression to find out null relationship

2007-03-05 Thread Andrus Adamchik
On Mar 3, 2007, at 7:47 AM, Marcin Skladaniec wrote: - [v.3.0-SNAPSHOT Jan 19 2007 05:26:38] [v.3.0-SNAPSHOT Jan 19 2007 05:26:38] Exception processing message org.apache.cayenne.remote.QueryMessage. Root cause: [v.3.0-SNAPSHOT Jan 19 2007 05:26:38] Null value for 'id'. Marcin, can you

Re: UseSharedCache programatic override failure

2007-03-05 Thread Andrus Adamchik
Hi Bob, From a quick glance looks like a bug. Could you please open a bug report: http://issues.apache.org/cayenne/ Andrus On Mar 3, 2007, at 12:03 AM, bob wrote: Hi all Using Cayenne 1.2.2, jdk5. In the modeler under cache configuration the "use shared cache" is disabled. This value

Re: Importing an EOModel with single table inheritance

2007-03-05 Thread Andrus Adamchik
Hi Simon, Looking at the code, it fails not because of single-table inheritance, but still I think this is a bug in Cayenne. Could you please open a bug report and attach your EOModel to it - I'd like to investigate more. http://issues.apache.org/cayenne/ Thanks Andrus On Mar 4, 2007,

Re: Tapestry 5 integration

2007-03-06 Thread Andrus Adamchik
On Mar 5, 2007, at 10:00 PM, Borut Bolčina wrote: Hi, maybe someone could make a wish at http://tapestryjava.blogspot.com/2007/03/t5-spring-integration- hibernate-next.html Cheers, Borut maybe someone could make a wish at I wish I could volunteer :-) But that would've been at the expe

Re: Calling commitChanges() from inside postPersist()

2007-03-06 Thread Andrus Adamchik
Sam, this could be a bug in the lifecycle (I haven't looked, I am in a time crunch now). Could you open a bug report documenting your findings. Thanks Andrus On Mar 6, 2007, at 2:59 AM, Sam Shah wrote: Hi, in a postPersist() callback method I'm trying to get a local copy of the committed

Re: Loading multiple cayenne.xml

2007-03-06 Thread Andrus Adamchik
We wanted to support this in Cayenne, just never got around actually doing it... You are on the right track, but to be able to use a single DataContext that has access to nodes and DataMaps of all cayenne.xml instances, you'll need to develop an algorithm to merge all configuration instance

Re: AW: out of memory

2007-03-06 Thread Andrus Adamchik
Peter is right in his assessment that DataContext would cache all its loaded objects (especially since they get in a dirty state via 'deleteObject'). To solve this problem, you may use a loop counter and commit and throw away the DataContext every X iterations (e.g. every 1000 or so). This

Re: Cayenne Classic vs. Cayenne JPA

2007-03-07 Thread Andrus Adamchik
(This thread has been duplicated on the dev list, see Ari's reply [1]. Also Randy doesn't seem to be a user list subscriber, so I am cc'ying to him) - Are there Cayenne functionalities available to Classic, but not JPA version? Both will be using the same stack. The principal difference i

Re: Cayenne Classic vs. Cayenne JPA

2007-03-07 Thread Andrus Adamchik
On Mar 7, 2007, at 3:04 PM, Randy Leonard wrote: But note JPA tools likely store all model data in annotations Not necessarily. JPA supports any combination of XML and annotations. It is up to the user how to do the mapping. Andrus

Re: Cayenne Classic vs. Cayenne JPA

2007-03-07 Thread Andrus Adamchik
On Mar 7, 2007, at 3:04 PM, Randy Leonard wrote: I would hope the industry provides vanilla JPA modelling tools, with the possibilty of provider-specific tool-extensions I would hope so. to add provider-specific annotations. JPA deals with some of that already: * Query extensions can be

Re: AW: Help: getting NPE at ObjectStoreGraphDiff.preprocess

2007-03-07 Thread Andrus Adamchik
On Mar 7, 2007, at 9:19 AM, Peter Schröder wrote: i am not quite sure, but i think that you have to use context.createAndRegister(MyType.class); instead of context.newObject(MyType.class); No, the two are equivalent. In fact the first (older) form is deprecated in 3.0 Andrus

Re: Improvement ? code generation (templates)

2007-03-07 Thread Andrus Adamchik
Hi Jerome, Could you give specific examples of the code you want to see generated? From your message I don't quite understand why we need to change the *default* template? Cheers, Andrus On Mar 7, 2007, at 5:50 PM, jerome moliere wrote: Hi all, rather than using custom templates could w

Re: Improvement ? code generation (templates)

2007-03-07 Thread Andrus Adamchik
cts have access to their ObjectContext, so by definition they have access to their mapping metadata via EntityResolver, so comparison can be done in a generic fashion, iterating via mapped attributes. Andrus On Mar 7, 2007, at 6:30 PM, jerome moliere wrote: 2007/3/7, Andrus Adamchik <

Re: Importing an EOModel with single table inheritance

2007-03-09 Thread Andrus Adamchik
Fixed - check out the snapshot build of 2.0 that I posted here: http://people.apache.org/~aadamchik/nightly/03092007/ Andrus On Mar 5, 2007, at 2:10 PM, Simon McLean wrote: Hi Andrus - It's on there: CAY-764 Simon On 5 Mar 2007, at 11:15, Andrus Adamchik wrote: Hi Simon, Looki

Re: create a fault like EOF?

2007-03-09 Thread Andrus Adamchik
On Mar 9, 2007, at 5:43 PM, Arturo Perez wrote: How does one go about making a fault the way that EOF does? tia, arturo Here is one way: ObjectId id = new ObjectId("Artist", Artist.ARTIST_ID_PK_COLUMN, 55); Artist fault = context.localObject(id); Andrus

Re: lifecycle callbacks and ROP

2007-03-10 Thread Andrus Adamchik
On Mar 10, 2007, at 2:15 AM, Aristedes Maniatis wrote: On 10/03/2007, at 10:13 AM, Tore Halset wrote: Hello. I am a lifecycle callbacks newbie trying to understand http:// cwiki.apache.org/CAYDOC/lifecycle-callbacks.html in a ROP context. Can the callback methods be defined in the client

Re: Cayenne v3.x and OSX

2007-03-12 Thread Andrus Adamchik
On Mar 12, 2007, at 2:29 AM, Randy Leonard wrote: I've downloaded the Cayenne 3.0 snapshot as referenced from the cayenne web site, and also built the latest code found in svn (including the 'mvn -P mac install' command), but still don't see a CayenneModeler application instance for OSX.

Re: Maven 2 Cayenne artifact

2007-03-12 Thread Andrus Adamchik
Good catch. I fixed it. Should be published to the site within an hour. Thanks Andrus On Mar 12, 2007, at 2:57 PM, Borut Bolčina wrote: Hello, at http://cayenne.apache.org/download.html there is Cayenne 2.0: * groupId: org.apache.cayenne * artifactId: cayenne, cayenne-nodeps and cayen

Re: Wanted: performance tuning hints

2007-03-12 Thread Andrus Adamchik
What I found was that in Insert operations, it is best to use Cayenne data objects (as opposed to raw SQL queries) Cayenne adapters for Oracle, Derby, FrontBase, Postgres and SQLServer use JDBC-level batching that sometimes speeds things up significantly. SQLTemplate doesn't use JDBC batchi

Re: Cayenne v3.x and OSX

2007-03-13 Thread Andrus Adamchik
On Mar 13, 2007, at 1:35 AM, Randy Leonard wrote: svn co https://svn.apache.org/repos/asf/cayenne/main/trunk/ cayenne cd cayenne && mvn install mvn -P mac install cd cayenne/assembly && ./build-mac.sh Skip the last step (not sure why it didn't work... every day Maven brings new "sur

Re: Does SelectQuery.addCustomDbAttribute[s] work?

2007-03-13 Thread Andrus Adamchik
IIRC no work has been done since the issue was opened. So it only works for the DbAttributes of the root table. From the first glance it shouldn't be too hard to add what Tore requested (some tweaking of SelectTranslator.appendCustomColumns() is needed). I guess nobody was motivated enough

Re: lifecycle callbacks not always fired

2007-03-14 Thread Andrus Adamchik
Is it an update that resulted from another callback by any chance? Andrus On Mar 14, 2007, at 8:51 AM, Lachlan Deck wrote: Hi Andrus (in particular), (Note: 3 tier Cayenne) we're finding that the postUpdate method is not being called if an operation is commenced on the server-side (like a

Re: Does SelectQuery.addCustomDbAttribute[s] work?

2007-03-14 Thread Andrus Adamchik
On Mar 14, 2007, at 8:46 AM, Lachlan Deck wrote: Hi Andrus, On 14/03/2007, at 4:53 AM, Andrus Adamchik wrote: IIRC no work has been done since the issue was opened. So it only works for the DbAttributes of the root table. From the first glance it shouldn't be too hard to add what

Re: lifecycle callbacks not always fired

2007-03-14 Thread Andrus Adamchik
ew modifiedOn value is saved to db, but postUpdate never runs. Regards Marcin On 14/03/2007, at 8:59 PM, Andrus Adamchik wrote: Is it an update that resulted from another callback by any chance? Andrus On Mar 14, 2007, at 8:51 AM, Lachlan Deck wrote: Hi Andrus (in particular), (Note: 3 tier

Re: Cayenne -- Apache re-deploy problem -- NullPointerException

2007-03-14 Thread Andrus Adamchik
Hi Marc, I'm using Cayenne (2.0.2) with the apache web server (5.5.20) and I'm facing to the following problem. You mean Tomcat, not apache web server (which would be httpd)? When apache does an automatic deploy, all objects are serialized / deserialized without any error. But after that,

[OT] Maven in Cayenne

2007-03-14 Thread Andrus Adamchik
Folks, This is a bit OT, but I know there are a few or maybe more power users of Maven on this list. We are having a little chat whether to ditch Maven as an internal build system [1], [2]. Feel free to comment if you have constructive ideas, but no flames please - we are really trying to

Re: [OT] Maven in Cayenne

2007-03-15 Thread Andrus Adamchik
On Mar 15, 2007, at 12:59 PM, jerome moliere wrote: In fact I just want to warn a big problem (like the cocoon members wrote in their build notes) it seems that Maven has some strange behaviours, very dispappointing when using continuus integration you may see several alerts (by mail) then

Re: svn checkout error

2007-03-15 Thread Andrus Adamchik
IIRC there were some problems with long paths and Subversion on Windows. I had to check out the code straight to C:\cayenne to shorten the path. Try it - if it works, we'll put a note in the developer guide. Andrus On Mar 14, 2007, at 10:36 PM, Borut Bolčina wrote: Hi all, checking ou

Re: AW: AW: AW: possible bug / memory leak in DispatchQueue and EventManager?

2007-03-15 Thread Andrus Adamchik
cronjob to restart the WebService every night which prevents this bug from causing any harm but I really would like to fix it properly and remove the cronjob. Thanx Ayhan Kondoz -Ursprüngliche Nachricht- Von: Andrus Adamchik [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 21. Februar 200

Re: lifecycle callbacks not always fired

2007-03-16 Thread Andrus Adamchik
bjectUtils any remaining "derived" DataContext methods that can be executed on a generic ObjectContext. Andrus On Mar 16, 2007, at 2:27 AM, Lachlan Deck wrote: Hello again, On 15/03/2007, at 12:15 AM, Andrus Adamchik wrote: One last try at guessing it. On the server you have t

Re: Running a query over multiple Databases?

2007-03-16 Thread Andrus Adamchik
Doing a join across DB's generally doesn't work (although it may *appear* to work in simpler cases of matching of FK), as it will require Cayenne to do in memory cartesian product processing. So you'll have to do it manually. (actually sounds like an interesting improvement ... although p

Re: Non persistent attributes

2007-03-19 Thread Andrus Adamchik
BTW, JPA spec defines a concept of a "transient" attribute, so this will be coming to Cayenne as well. Although as others noticed this is primarily a non-functional (although useful) convenience. Andrus On Mar 18, 2007, at 2:33 PM, Juergen Saar wrote: The actual way for cayenne is the defi

Re: Source code in jar?

2007-03-21 Thread Andrus Adamchik
On Mar 21, 2007, at 6:35 PM, Török Péter wrote: Hello, is the official source code of Cayenne 2.0.2 publicly available in a jar or zip somewhere? Thanks in advance, Péter You can create one yourself from the download: cd cayenne-2.0.2/src/cayenne jar cvf cayenne-2.0.2-src.jar * Andrus

Re: Cayenne Question

2007-03-23 Thread Andrus Adamchik
Hi Prashant, Note that Cayenne user support is done via the mailing list, as it allows us to better share the community knowledge. I am ccy'ing the question to the list. Please feel free to continue this discussion on the list: http://cayenne.apache.org/mailing-lists.html On Mar 23, 200

Summer of Code 2007

2007-03-26 Thread Andrus Adamchik
I overlooked the start of the Google Summer of Code program this year, but it is not too late yet for the students and mentors to sign up. See the details here: http://wiki.apache.org/general/SummerOfCode2007 Interested Students: Summer of Code is a program sponsored by Google that allows s

Re: 1.2.2 fetchFinished broken?

2007-03-30 Thread Andrus Adamchik
No, it is not a known bug. While 'fetchFinished' is deprecated in 3.0 in favor of lifecycle callbacks, it should work in 1.2.x. Could you open a bug report with some sample code that demonstrates the problem? http://issues.apache.org/cayenne/ Thanks Andrus On Mar 30, 2007, at 12:44 AM, Artu

Re: Too many EventManager's?

2007-03-30 Thread Andrus Adamchik
Interesting. Didn't know it was a known problem with java 1.4. Lazy initialization was used exactly because we don't want dispatch threads to start unless they are needed. So ... per Wikipedia article this is a legacy JDK problem and going forward we should simply be using "volatile" keywor

Re: Cayenne -- Apache automatic deploy problem

2007-03-30 Thread Andrus Adamchik
Hi, See my original reply asking for more information here: http://objectstyle.org/cayenne/lists/cayenne-user/2007/03/0101.html BTW, it would be much easier to communicate if you subscribe to the list :-) Andrus On Mar 30, 2007, at 4:46 PM, Marc Gabriel-Willem wrote: Hi, Sorry to repo

Re: Too many EventManager's?

2007-03-30 Thread Andrus Adamchik
broken in the current implementation, but cleaning it up is desirable at some point. BTW, I changed shared EM instance to be 'volatile', but I don't think it caused us any grief to date. Andrus [1] https://issues.apache.org/cayenne/browse/CAY-610 On Mar 30, 2007, at

Re: Cayenne -- Apache automatic deploy problem

2007-03-30 Thread Andrus Adamchik
ur first reply. I have exactly the same error when I stop and restart properly the Tomcat server. In fact, stoping and restarting the server simulate the serialization / deserialization operation that an application server can do at any time it wants (isn't it ?) Marc -Original Me

Re: Cayenne -- Apache automatic deploy problem

2007-04-01 Thread Andrus Adamchik
STABLE-2.0/ cayenne/cayenne-java/src/cayenne/java/org/apache/cayenne/access/ DataContext.java On Mar 30, 2007, at 10:55 AM, Marc Gabriel-Willem wrote: Hello, I checked the entity resolver value. Indeed, in this situation the value is 'null'. Marc -Original Message- From: And

Re: BUG: Sql server Database pk generation ?

2007-04-01 Thread Andrus Adamchik
Hi, I don't think there was a change between 1.2.x and 2.0.x in this code. The error either means that the database schema in question is not setup to support autoincrement, or the driver doesn't support autoincremented keys. Are you using the same database and the same JDBC driver as bef

Re: SMall bug in docs

2007-04-02 Thread Andrus Adamchik
Hi Jerome, Could you please post the links to such pages? I don't see any references to objectstyle packages on cgen page, except for the 1.2 documentation bundle of course. Andrus On Apr 2, 2007, at 10:07 AM, jerome moliere wrote: Hi all, just to say that some web pages still refer to t

  1   2   3   4   5   6   7   8   9   10   >