Cayenne TSS thread

2006-07-22 Thread Andrus Adamchik
Folks, there is a slow-going TSS thread on Cayenne vs. Hibernate and general ease of use: http://www.theserverside.com/news/thread.tss?thread_id=41372 Feel free to login to TSS and share your opinions ;-) Andrus

Re: Cayenne TSS thread

2006-07-24 Thread Andrus Adamchik
than inflammatory. /dev/mrg On 7/22/06, Andrus Adamchik [EMAIL PROTECTED] wrote: Folks, there is a slow-going TSS thread on Cayenne vs. Hibernate and general ease of use: http://www.theserverside.com/news/thread.tss?thread_id=41372 Feel free to login to TSS and share your opinions

Re: NamedQuery parameters

2006-07-24 Thread Andrus Adamchik
On Jul 24, 2006, at 11:08 AM, Michael Gentry wrote: loginid and password are Java (ObjEntity) attributes Not really - see my other message.

Re: Delete Rules: Cascade with Deny on reverse relationship

2006-07-27 Thread Andrus Adamchik
Doesn't look like DataContextDeleteAction is smart about it: if (relatedObjects.size() == 0) { continue; } // process DENY rule first... if (relationship.getDeleteRule() == DeleteRule.DENY) {

Re: Cayenne Modeler - Reengineer Database Schema issue

2006-07-29 Thread Andrus Adamchik
Yeah, syncing the existing model can get hairy. As a general recommendation I would say do it by hand (add/remove attributes/ relationships and such). However your specific case seems like something we should fix. Could you please log a Jira issue? Thanks Andrus On Jul 29, 2006, at 6:29

Re: org.objectstyle.cayenne.ConfigurationException

2006-07-30 Thread Andrus Adamchik
Hi Rafael, Essentially the error means that Java runtime can't find cayenne.xml anywhere in classpath. The catch is to put cayenne.xml and other XML files in the root of an Eclipse *source* folder as shown on the picture at the bottom of this page:

Re: Problem with DB2 UDB

2006-08-01 Thread Andrus Adamchik
The first error seems to be related to the second - for whatever reason JDBC connection fails (and DB2 is at its best not telling why). I don't have a specific advice, as this can be any number of things (including permissions, etc.). Try connecting from JDBC, bypassing Cayenne and see if

Re: caching query behavior changed?

2006-08-01 Thread Andrus Adamchik
On Aug 1, 2006, at 2:52 PM, Bryan Lewis wrote: I have some old code that I've been running for a long time. It creates a caching SelectQuery like this: SelectQuery query = new SelectQuery(MyEntityName); query.setCachePolicy(QueryMetadata.SHARED_CACHE);

Re: Database replication and caching

2006-08-02 Thread Andrus Adamchik
A shared cache can be cleaned up by doing DataDomain.getSharedSnapshotCache().clear(). Also I am in the process of implementing a pluggable externally managed cache in 3.0: http://issues.apache.org/cayenne/browse/CAY-613 Andrus On Aug 2, 2006, at 2:41 AM, Borut Bolčina wrote: We are at

Re: cayenne INSERTs NULL values instead of strings

2006-08-03 Thread Andrus Adamchik
On Aug 3, 2006, at 11:33 AM, Mike Kienenberger wrote: That's a bit odd. Have you tried using createAndRegisterNewObject() instead? newObject is part of the new ObjectContext api, and I haven't used it myself. 'newObject' should work fine... This has to be something else. Strange

Re: Error: unnamed domain

2006-08-04 Thread Andrus Adamchik
On Aug 4, 2006, at 2:35 PM, Borut Bolčina wrote: ERROR [04 avg 2006 20:14:44:859] Exception starting filter CayenneFilter org.objectstyle.cayenne.ConfigurationException: [v.1.2 July 18 2006] Error during Configuration initialization. [v.1.2 July 18 2006] Domain 'name' attribute must be

Re: Error: unnamed domain

2006-08-04 Thread Andrus Adamchik
, Andrus Adamchik [EMAIL PROTECTED]: On Aug 4, 2006, at 2:35 PM, Borut Bolčina wrote: ERROR [04 avg 2006 20:14:44:859] Exception starting filter CayenneFilter org.objectstyle.cayenne.ConfigurationException: [v.1.2 July 18 2006] Error during Configuration initialization. [v.1.2 July 18 2006] Domain

Re: ConcuirrentModificationException with delete rule

2006-08-07 Thread Andrus Adamchik
Probably should be the other way around - toOne relationship with nullify and complimentary toMany with cascade. It is essentially a question of which side of the relationship can exist independently from another side, and which one can not. Andrus On Aug 7, 2006, at 10:37 AM, Bryan Lewis

Re: Web application with no access to database

2006-08-10 Thread Andrus Adamchik
Hi Borut, (2) is essentially the same as (3), only this is a case of unsupported remoting, in that it works in theory, but hasn't been tested much to iron out any possible wrinkles. Andrus On Aug 8, 2006, at 4:51 PM, Borut Bolčina wrote: Hello, me again troubling you... I just read

Re: Avoid automatic Bi-directional Relationship Management

2006-08-16 Thread Andrus Adamchik
Hi Peter, On Aug 15, 2006, at 6:48 PM, Peter Karich wrote: I may be misreading your message, but isn't this as simple as not defining the reverse relationship? That's why the documentation says if Sorry, I mean: I defined A has many B and B has many A in the modeller. And now: how

Re: random behaviour in Cayenne?

2006-08-16 Thread Andrus Adamchik
Hi Hans, [your address doesn't seem to be subscribed to the list, so be aware that you can miss list-only responses] Yes, relationships won't probably get copied the way you expect them. IIRC someone posted some examples before on how to clone a DataObject. In any event it should be

Re: Flex Cayenne

2006-08-17 Thread Andrus Adamchik
Hi Malcolm, You can traverse an object graph using ClassDescriptor with a custom PropertyVisitor. For instance DataContext.registerNewObject(..) implements a similar algorithm for the NEW objects. Andrus On Aug 17, 2006, at 7:33 AM, Malcolm Edgar wrote: Hi All, I am currently having

Re: Cayenne does not throw an exception when an outer join is attempted

2006-08-17 Thread Andrus Adamchik
Would it make sense for Cayenne to throw an exception when an outer join is attempted? Could you be more specific on when it should detect that? IIRC there were some discussions on that in the past. You provide no references though. Also there is an effort underway to support outer joins

Re: Is andExp supported on Scalar booleans?

2006-08-17 Thread Andrus Adamchik
Good point. Another suggestion: instead of using ASTScalar, you can implement a similar custom subclass that extends ConditionNode. E.g. ASTBoolean extends ASTCondition. We should include this in Cayenne at some point too... Andrus On Aug 16, 2006, at 4:47 PM, Øyvind Harboe wrote: I'm

Re: sorting and ordering pk field in memory

2006-08-17 Thread Andrus Adamchik
The easiest way to order on a property that is not really a property is to create a cover getter for it in the persistent class: public int getId() { return DataObjectUtils.intPkForObject(this); } Andrus On Aug 17, 2006, at 10:11 AM, Zvonimir Spajic wrote: Hello, is there a nice way to

Re: Execution order of querys on commit

2006-08-23 Thread Andrus Adamchik
Just sent a reply to dev, but of course user list is a better place for this discussion. http://objectstyle.org/cayenne/lists/cayenne-devel/2006/08/0198.html Andrus On Aug 23, 2006, at 11:59 AM, Thilko Richter wrote: Hello @ all, in which order(sorting) the querys are executed on commit?

Re: GlassFish

2006-08-23 Thread Andrus Adamchik
I haven't used GlassFish but indeed there is no reason why Cayenne wouldn't work with it. Andrus On Aug 21, 2006, at 5:03 PM, Michael Gentry wrote: Has anyone used Cayenne with GlassFish? I was thinking we should add something to:

Re: @sum, @count

2006-08-23 Thread Andrus Adamchik
This is not supported at the moment, but there are some early attempts to support it in Cayenne expressions and also JPA expressions. E.g.: http://cwiki.apache.org/CAY/expression-functions.html In other words we need some design discussion to move forward this effort, either on the dev

Re: cayenne 3

2006-08-23 Thread Andrus Adamchik
Hi Marcin, IIRC these major changes have occurred: * package renaming (this also requires the new Modeler) * removal of deprecated API * (the one that you noted) temporary InvalidateListCacheQuery was replaced with a more generic RefreshQuery * removal of Log4J (and explicit logging

Re: Detecting when outer joins are needed [Was: Cayenne does not throw an exception when an outer join is attempted]

2006-08-25 Thread Andrus Adamchik
On Aug 23, 2006, at 11:35 PM, Mike Kienenberger wrote: Here's where I'm finding that I need outer joins: 1) If two qualifiers for a non-mandatory relationship path are or'd together. This is also what Øyvind Harboe reported. It may be that the non-mandatory part is irrelevent. 2) If

Re: Expression.filterObjects() and SelectQuery

2006-08-25 Thread Andrus Adamchik
Hi, On Aug 24, 2006, at 11:43 AM, Øyvind Harboe wrote: Q1: Do the results of Expression.filterObjects() for all records in a table and the same expression used in SelectQuery always match? I hope the answer is not currently, but once outer joins are supported, yes, because it will give me the

Re: Problems with MySql id type with AUTO_INCREMENT

2006-08-29 Thread Andrus Adamchik
How is the column mapped in the Modeler? Have you tried mapping it as BIGINT? Andrus On Aug 28, 2006, at 1:22 PM, Tobias SCHOESSLER wrote: I use cayenne 1.2, MySql. AUTO_INCREMENT ids the type of the id field in the mysql schema is set to INT NOT NULL AUTO_INCREMENT UNIQUE I create an

Re: Problems with MySql id type with AUTO_INCREMENT

2006-08-29 Thread Andrus Adamchik
Andrus Adamchik [EMAIL PROTECTED] le.orgTo cayenne- [EMAIL PROTECTED] Tuesday, 29cc August 2006 11

Re: Problems with MySql id type with AUTO_INCREMENT

2006-08-29 Thread Andrus Adamchik
retrieve the value later via cayenne? Isn't the bug rather to search there? Andrus Adamchik [EMAIL PROTECTED] le.orgTo cayenne- [EMAIL PROTECTED

Re: Problems with MySql id type with AUTO_INCREMENT

2006-08-29 Thread Andrus Adamchik
On Aug 29, 2006, at 4:16 PM, Tobias SCHOESSLER wrote: But still you are right there is a bug in mysql too. If the column type is INT and not INT UNSIGNED it should return java.lang.Integer but it returns java.lang.Long instead. This was my first observation. Still probably worth fixing

Re: Problems with MySql id type with AUTO_INCREMENT

2006-08-29 Thread Andrus Adamchik
I'd appreciate that. Andrus On Aug 29, 2006, at 5:31 PM, Tobias SCHOESSLER wrote: ok, I got it. You want me to add a Jira entry for this? I never did this before ... : | Andrus Adamchik [EMAIL PROTECTED] le.org

Re: [ANN] Two new (sub)sites using Cayenne

2006-09-02 Thread Andrus Adamchik
Hi Borut, That's great news! Hope you don't mind if I put this announcement on our web site and mention these sites under Success Stories Andrus On Sep 2, 2006, at 2:10 PM, Borut Bolčina wrote: Hello, I waited for the dust to settle after deploying two sister web applications using

Re: [ANN] Two new (sub)sites using Cayenne

2006-09-05 Thread Andrus Adamchik
On Sep 5, 2006, at 6:12 PM, Borut Bolčina wrote: I have an approval for putting the sites under Success Stories. Cool. In the meantime I will try to design a better web page. Can I use the materials from Cayenne User Guide pdf (Copyright (c)2001-2005 ObjectStyle Group) and from current

Re: Default/Initial values post validation delegates etc

2006-09-06 Thread Andrus Adamchik
On Sep 5, 2006, at 12:18 PM, Lachlan Deck wrote: 1) Are initial values set with server code propagated to clients when an object is created on the client? The following url... http://cwiki.apache.org/confluence/display/CAY/Setting+Initial+Values ... suggests using public void

Re: Using Cayenne 1.2 and 3.0 jars in the same project

2006-09-06 Thread Andrus Adamchik
Checking the resources folders in the source tree, namespace conflict may occur only in the class generation templates. So if you only rely on custom templates, you should be fine. Andrus On Sep 6, 2006, at 2:41 AM, Mike Kienenberger wrote: Can anyone think of a reason why we couldn't use

Re: interactions with PostgreSQL sequences

2006-09-07 Thread Andrus Adamchik
I'm looking for ideas to debug, ideas on how likely it is that Cayenne and the database have differing takes on what the next primary key should be and things like that. That's what I suspect too... Sequence increment must be the same in DB and in Cayenne model (note that in Cayenne increment

Re: interactions with PostgreSQL sequences

2006-09-07 Thread Andrus Adamchik
On Sep 7, 2006, at 3:32 PM, Arturo Pérez wrote: The sequence was created like: CREATE SEQUENCE pk_article INCREMENT 1 START 200 ; so I need to redo that with a INCREMENT 20? Ok, INCREMENT 1 explains the mismatch. You can either redo the sequences changing the increment, or edit PK

Re: JDBCRealm alternatives... is there a Cayenne Realm around I could use?

2006-09-08 Thread Andrus Adamchik
Hi Eric, Yes, it looks like the driver is missing. To make it available to Tomcat container you need to put it in $TOMCAT_HOME/common/lib. I don't recall if this location is Tomcat version specific, so if this doesn't work, you can try other common lib folders under $TOMCAT_HOME. Andrus

Site redesign (sans technical issues)

2006-09-09 Thread Andrus Adamchik
Borut and Ari, Thanks a lot for offering help with site design! I also appreciate the focus on usability. I'll comment about navigation in a separate message, here is general comments on the design. * I like the idea of having disjoint content modules * I do not like the look of the

Re: Sneak preview of new proposed Cayenne site

2006-09-09 Thread Andrus Adamchik
On Sep 9, 2006, at 4:26 PM, Borut Bolčina wrote: Top right items are shortcuts to deeper items which based on my mental perception of content should also be exposed. Good idea, but I don't think it'll work in an anonymous system without a way to track user preferences. Different items are

Re: Site structure redesign

2006-09-09 Thread Andrus Adamchik
On Sep 9, 2006, at 5:10 PM, Borut Bolčina wrote: What is Community and its content? Mailing lists, info on how one can participate, how to submit bugs, some blurb about Apache, etc. Development and Issue Tracking don't belong there in my opinion because of their technical natures. We

Re: Site structure redesign

2006-09-09 Thread Andrus Adamchik
On Sep 9, 2006, at 6:46 PM, Borut Bolčina wrote: I can live with that, it's just that it discards my idea of two site focuses. We can experiment, I think we are all very open minded ;-) This is where I misunderstood your intent initially. I think I follow you now. See my other message on

Re: Thanks and raw sql statements and more

2006-09-11 Thread Andrus Adamchik
Hi Peter, Glad Cayenne worked out well for you and thanks for sharing Derby experience. On Sep 8, 2006, at 5:20 PM, Peter Karich wrote: If I create a new object, can I query the database (e.g. a SelectQuery) without a commit? I tried this, but it does not work? Should'nt I get this

Re: Exception with Tomcat's session restore capability

2006-09-11 Thread Andrus Adamchik
On Sep 11, 2006, at 5:22 PM, Dave Dombrosky wrote: Andrus, Those are the only objectstyle lines in the stack trace. The next line up is my code calling a get method on a DataObject property, so I'm not sure how seeing my code would be useful. -Dave Ok. That sort of answers my question.

Re: Default/Initial values post validation delegates etc

2006-09-12 Thread Andrus Adamchik
On Sep 11, 2006, at 10:08 PM, Lachlan Deck wrote: If not - maybe I can put a vote in for a delegate method being added which is called just prior to the object return. ala awakeFromInsertion(ObjectContext) :-) BTW, JPA spec [1] defines a bunch of callback annotations (PrePersist,

Re: Site structure redesign

2006-09-17 Thread Andrus Adamchik
That's good to know :-) On Sep 17, 2006, at 7:15 PM, Aristedes Maniatis wrote: On 18/09/2006, at 9:08 AM, Andrus Adamchik wrote: Somehow this discussion has died out. I hope nobody got offended or decided it is not worth it just because there is a disagreement. That would be really sad

Re: Site structure redesign

2006-09-17 Thread Andrus Adamchik
More on the docs usability. Click project is almost unmatched in this area. Maybe we should borrow some ideas, like this one: http://click.sourceforge.net/docs/click-cheat-sheet.pdf Andrus On Sep 17, 2006, at 7:30 PM, Andrus Adamchik wrote: That's good to know :-) On Sep 17, 2006, at 7

Re: TransactionDelegate and willCommit

2006-09-17 Thread Andrus Adamchik
Under what circumstances can there be a transaction which invokes TransactionDelegate but no context at that time DataContext is not bound to the current thread by default. User has to enable this behavior, e.g. by using the filter: http://cwiki.apache.org/CAYDOC/web-applications.html

Re: MS SQL Server Unicode Support

2006-09-19 Thread Andrus Adamchik
Yeah, I would think this has to be abstracted in the JDBC layer. Dov, do you have any specific problems that make you believe that this is broken? Andrus On Sep 19, 2006, at 5:20 PM, Tore Halset wrote: Hello. We are using MS SQL Server with cayenne. nvarchar works with the old (have

Re: Cayenne web site

2006-09-20 Thread Andrus Adamchik
On Sep 20, 2006, at 2:10 PM, Borut Bolčina wrote: 1. The fact that Cayenne is undergoing a process for Apache family is not nearly as important to be the first thing a user sees on the front page. As Kevin stated, this can easily suggest the immaturity of the framework. This is a

Re: Cayenne web site

2006-09-20 Thread Andrus Adamchik
be through with that soon. Andrus On Sep 20, 2006, at 3:00 PM, Kevin Menard wrote: Andrus Adamchik wrote: On Sep 20, 2006, at 2:10 PM, Borut Bolčina wrote: 1. The fact that Cayenne is undergoing a process for Apache family is not nearly as important to be the first thing a user sees

Re: RefreshQuery

2006-09-21 Thread Andrus Adamchik
Hi Marcin, RefreshQuery built that way, unlike its predecessor InvalidateListCacheQuery, doesn't do pattern matching on the names. This was a bit inefficient. Instead it does exact match on the cache group names. One or more cache groups are assigned explicitly by a user of the original

Re: PostgreSQL interval type handling?

2006-09-21 Thread Andrus Adamchik
Hi Arturo, Yes, you'd need a custom ExtendedType to handle that. Those work just fine. So as long as you can figure out how to read and write interval via JDBC, you should be fine. Andrus On Sep 20, 2006, at 11:20 PM, Arturo Pérez wrote: Hi all, I would like to use the PostgreSQL

Re: Timestamps not working for me in PostgreSQL 8.0

2006-09-21 Thread Andrus Adamchik
Yes, java.util.Date is Cayenne default mapping for the date types, so if there are no other hints in the query, this is what Cayenne will use. The type of fromDate is java.util.Date - I'm not even able to select that type in the modeller Actually you can - you should type java.util.Date

Re: Caching query results

2006-09-25 Thread Andrus Adamchik
Until 3.0 invalidating query lists was totally up to the developer. In 3.0 we added three things - RefreshQuery (mentioned by Ari), query cache group concept, and pluggable QueryCache. This makes clustering and refresh policy management much simpler. I am running this latest code (3.0

Re: NullPointerException when using shared cache

2006-09-25 Thread Andrus Adamchik
of a report from me will mean that things at least didn't get any worse. :-) Andrus Adamchik wrote: Ayhan, Wolfgang and others who have this synchronization issue - I posted a patched version of 1.2.1 Cayenne: http://dev.objectstyle.org/~andrus/cayenne-1.2.1-CAY-565- patched.tar.gz I would

News publishing [Was: Cayenne web site]

2006-09-25 Thread Andrus Adamchik
Currently the news are entered in the main space (CAY). We can incorporate this on the front page via different means such as * A custom Confluence template (not sure if it has enough flexibility for a sophisticated branded look) * A script that grabs news via RSS and builds the static page

Re: Caching query results

2006-09-27 Thread Andrus Adamchik
Hi Francesco, I see. Essentially DataObject - Query set association would be an analogue of 3.0 cache groups (where group name == entity name). Actually in-memory checking procedure the way you describe it may not be as bad as I originally thought. Matching object state before and after

Scratch Confluence space created [Was: Cayenne web site]

2006-09-27 Thread Andrus Adamchik
Folks, I just deployed a throwaway instance of Confluence with an Auto- export plugin configured: Editable Space: http://www.objectstyle.org/confluence-scratch/display/CAYSCRATCH/ Exported Space: http://objectstyle.org/confluence-auto-export/CAYSCRATCH/ For those who are interested in

Re: Error: same entity-name in 2 DataMaps

2006-09-29 Thread Andrus Adamchik
Hi Juergen, I assume you have 2 DbEntities with the same name, mapped to different ObjEntities (otherwise it wouldn't have worked in 1.1 either). Actually you can work around that issue by putting conflicting entities in two different DataDomains, as domains do not share EntityResolvers.

Re: Thread safety and Cayenne ( Tapestry)

2006-09-29 Thread Andrus Adamchik
DataContext is not thread-safe, as it is intended for access by a single user. DataDomain and the rest of the stack underneath the DataContext is thread-safe. If a there is a chance of multiple threads belonging to the same user to access the context (and its DataObjects) simultaneously,

Re: Problems with MySql id type with AUTO_INCREMENT

2006-09-29 Thread Andrus Adamchik
with changing pk types on creation and retrieval . That's why i tried INT UNSIGNED and BIGINT. Is your advise still correct for this ? Andrus Adamchik [EMAIL PROTECTED] le.org

Re: Success stories

2006-10-01 Thread Andrus Adamchik
search Cayenne enabled services for Slovenia and Macedonia also. -Borut 2006/9/30, Andrus Adamchik [EMAIL PROTECTED]: Just got around to posting Borut's and Ari's success stories. They should be on the website within ~20 minutes. Here is a link to the news item: http://cwiki.apache.org

Re: Cayenne web site design

2006-10-01 Thread Andrus Adamchik
On Oct 1, 2006, at 8:43 PM, Kevin Menard wrote: o We should probably have the 1.1 documentation on the site. This could be marked as a legacy release. 1.2 is still fairly young, however, so we should make it easy for those still using 1.1 to get appropriate support. My idea of how

Re: Cayenne web site design

2006-10-02 Thread Andrus Adamchik
So let me repost how the menu may look like with old releases links: * Version 2.0 * Version 1.2 * Legacy Releases * Development Release (Version 3.0) Legacy Releases can either expand down to two more levels, or simply open a page listing all of them. Andrus On Oct 2, 2006, at 12:24 PM,

Re: How to use TransactionDelegate to do audit logging?

2006-10-02 Thread Andrus Adamchik
Yeah, need to write the docs. Here is a short example: DataDomain domain; int callbackType; // types are defined in 'org.apache.cayenne.map.LifecycleEventCallback' interface domain.getEntityResolver().getCallbacks(callbackType).addListener( MyClass.class,

Posted Modeler 3.0 snapshots

2006-10-03 Thread Andrus Adamchik
Since our nightly builds do not have a working Modeler, I posted platform-specific snapshots here for those who want to try 3.0: http://people.apache.org/~aadamchik/modeler-snapshot-10032006/ 1. Mac OS X: You'll need to download and unpack CayenneModeler.app.tar.gz 2. Windows: You'll

Re: Database Generated Ids

2006-10-04 Thread Andrus Adamchik
Hi Felipe, Here is a docs page on auto-incremented keys: http://cwiki.apache.org/confluence/display/CAYDOC/Generated+Columns Also see my comments below... On Oct 4, 2006, at 3:13 AM, DOMINGUEZ Felipe wrote: Hello every body. I am using Cayenne to query hsqldb. On HSQLDB I have a few

Re: Howto modify primary key cache size

2006-10-06 Thread Andrus Adamchik
Yes it did. It can be set via API (JdbcPkGenerator.setPkCacheSize(..)): http://incubator.apache.org/cayenne/1_1/api/cayenne/org/objectstyle/ cayenne/dba/JdbcPkGenerator.html Andrus On Oct 6, 2006, at 10:53 AM, Mike Kienenberger wrote: As Michael says, not sure if the default 1.1 jdbc pk

Re: [announce] Click Framework 1.0 is now available

2006-10-07 Thread Andrus Adamchik
Congrats to Malcolm and the Click team! Click is indeed the easiest-to-use web framework on the market. Hope that the final release, implying stable status, will lead to much wider adoption. Cheers, Andrus On Oct 4, 2006, at 11:59 PM, Malcolm Edgar wrote: Hi All, Click Framework 1.0 is

Re: [announce] Click Framework 1.0 is now available

2006-10-07 Thread Andrus Adamchik
on about frameworks I might as well jump in with my views as well but in the back of my mind know that it has little to do with cayenne itself. I was questioning myself more than anything. Andrus Adamchik wrote: Regarding my response to the announcement, this is my opinion from

Re: Problem upgrading to cayanne 2.0.1

2006-10-09 Thread Andrus Adamchik
That's a relief. Otherwise it would've been a pretty serious bug requiring immediate attention :-) Andrus On Oct 9, 2006, at 8:23 AM, DOMINGUEZ Felipe wrote: Hi again. I have solved the problem I had. There where some of my classes that I did not recompile and they were referring to the

Re: ClassCastException in DataObject types

2006-10-12 Thread Andrus Adamchik
since I upgraded to Cayenne 2.0? -david -Original Message- From: Andrus Adamchik [mailto:[EMAIL PROTECTED] Sent: Thursday, October 12, 2006 11:09 AM To: cayenne-user@incubator.apache.org Cc: David Norwood Subject: Re: ClassCastException in DataObject types David, So what type is returned

Re: Still problems to create Ant task

2006-10-13 Thread Andrus Adamchik
I just created a small test project and it seems to work just fine. The jar path includes cayenne.jar, task.jar and driver.jar. Andrus public class TestTask extends Task { protected File cayenneProject; public void setCayenneProject(File cayenneProject) {

Re: Still problems to create Ant task

2006-10-27 Thread Andrus Adamchik
Hi Felipe, Hmm... This bounce message (... the recipient's mailbox is full...) probably referred to just one of the list subscribers. Anyways the attachment was stripped from the message delivered to the list (IIRC this is an anti-virus feature of the Apache list server). I suggest to

Re: DataContext#createDataContext becomes slower

2006-10-27 Thread Andrus Adamchik
Interesting... so the performance degrades in a linear fashion as a function of the total number of the created contexts. Quick glance at the code suggests this may have something to do with registering DataContext's ObjectStore as a listener for the parent cache events. Not sure what

Re: [ANN] Cayenne 2.0.1 released

2006-10-27 Thread Andrus Adamchik
Menard wrote: Andrus Adamchik wrote: I am glad to announce Cayenne 2.0.1 release - our first release via Apache incubator: Woo hoo. I imagine there will be maven builds available. If that be the case, you'll want to update the documentation pointing to a groupId

Re: wrap up from the software summit

2006-10-28 Thread Andrus Adamchik
Very cool! I suggest that we add an entry about the presentation to the Cayenne Wiki news section and link to it from the front page. If you need more info on how to do that, please ping me on the dev list. 1) JPA support was high on many folks list of stuff that they wanted to see.

Re: Shared cache

2006-10-29 Thread Andrus Adamchik
Hi Marko, As the goal of the default synchronization mechanism is *synchronization*, new objects do not generate events as there are no stale cache entries in peer VMs that need to be refreshed. So your observations are consistent with desired Cayenne behavior. For custom event

Re: Cayenne 3.0 roadmap

2006-10-29 Thread Andrus Adamchik
Yeah, we embraced your expression ideas, just never got around to implementing them :-) You may have seen other recent discussions between Mike K. and myself on how to better do the splits and how to combine this with similar JPA API (EJBQL).

Re: Cayenne junit testing, Was: Cayenne 3.0 roadmap

2006-10-30 Thread Andrus Adamchik
Current default Cayenne unit tests are probably a bad model, as most bootstrap code was written before Cayenne was even operational. However the new Maven-based integration test package that targets testing of POJO's is the state of the art as far as I am concerned (can be used from Ant as

Re: Capturing DataContextEvent or GraphEvent

2006-10-31 Thread Andrus Adamchik
Yeah, using internal event mechanism in the application can be confusing. Been there myself, so now I am advertising the (unreleased) 3.0 callbacks as a better substitute :-) Andrus On Oct 31, 2006, at 11:10 AM, edward pedersson wrote: Found the problem. have to register a GraphEvent with

Re: Using Cayenne withTomcat gives ClassCastException

2006-11-01 Thread Andrus Adamchik
Ok, looks like no WO is involved (just reread the original message - doh!). Still the advice given in the quoted thread on how to compare the classloaders should help to debug the problem. Andrus On Nov 1, 2006, at 3:01 PM, Andrus Adamchik wrote: This seems like some kind of classloader

Re: Setup hsqldb tables in memory?

2006-11-02 Thread Andrus Adamchik
Here is the latest code example used in our integration tests. Works with any DB, including HSQLDB in-memory URL mentioned earlier: http://tinyurl.com/y6ekbs Andrus On Nov 2, 2006, at 12:50 PM, Mike Kienenberger wrote: You can take a look at the cayenne unit tests. These work (or at least

Re: Setup hsqldb tables in memory?

2006-11-03 Thread Andrus Adamchik
I think Cris is right - try clearing the length field of the 'rechnungsBetrag' column in the Modeler. Andrus On Nov 3, 2006, at 9:59 AM, Christian Mittendorf wrote: This is the db entity: db-entity name=invoices catalog=boni db-attribute name=anum type=VARCHAR length=45/

Re: accessing ObjectStore graph changes [WAS reverting changes and displaying commited changes]

2006-11-07 Thread Andrus Adamchik
Just to reiterate, these solutions where already mentioned: * Compare data with snapshot as Bryan suggested (drawback - relationship handling can be non-trivial) * Use non-public method ObjectStore.getChanges with a custom GraphChangeHandler to analyze the changes. The simplest and probably

Re: Nested data context problems

2006-11-09 Thread Andrus Adamchik
I don't think I fully follow the sequence of events here, so my comments are a bit random... 3. I commit it on the first page, so it goes to the database - here i can see sql updates but also indication of event i think is used for cache synchronisation DataRowStore [DEBUG]

Re: Nested data context problems

2006-11-12 Thread Andrus Adamchik
with singleKeyValue of wrong data type? Does anyone depend on this behavior? Damir - Original Message From: Andrus Adamchik [EMAIL PROTECTED] To: cayenne-user@incubator.apache.org Sent: Thursday, 9 November, 2006 11:24:38 PM Subject: Re: Nested data context problems I don't think I fully

Re: Docs and some questions

2006-11-12 Thread Andrus Adamchik
As Ari just mentioned, JGroups site is located here: http://www.jgroups.org Cayenne has built in support for using JGroups as a provider for cache synchronization. You can configure it in the Modeler: * Check Remote Change Notifications for the DataDomain * Click the Configure button next

ROP messaging [Was: Docs and some questions]

2006-11-12 Thread Andrus Adamchik
I renamed this part of the thread since it is about a different thing. Andreas was talking about traditional Cayenne applications accessing the DB, while Ari is talking about ROP. Things are significantly different between the two. If we get deeper into technical details here, I also

Re: Docs and some questions

2006-11-15 Thread Andrus Adamchik
Looks like you need to synchronize local databases rather than DataContexts (which would be a secondary concern in this situation). Synchronzing contexts (the default implementation at least) only works if all of them are connected to the same database. I.e. if DC1 in APP1 commits its

Re: cayenne in a (rich) client/server setup

2006-11-15 Thread Andrus Adamchik
Also take a look at nested DataContexts. In desktop apps they are much more useful than in web apps, e.g. for things like nested dialogs, where you need to save or cancel dialog input without saving to the database. Andrus On Nov 15, 2006, at 8:53 AM, Michael Gentry wrote: Back in the

Re: flattened relationship updating

2006-11-18 Thread Andrus Adamchik
Yeah, you either flatten a relationship or you don't. A mix of overlapping relationships would require manual maintenance. Andrus On Nov 17, 2006, at 8:45 AM, Michael Gentry wrote: I've not flattened relationships in Cayenne yet, but this could be a bug/glitch (or a design choice). I went

Re: transient objects: NPE on a.setToB(new B())

2006-11-25 Thread Andrus Adamchik
Yeah, at the moment for the relationships to work, objects have to be registered with DataContext. In 3.0 we will likely be working on ways to attach unregistered graphs to the DataContext, but as of now this feature is not there yet. Andrus On Nov 25, 2006, at 10:44 AM, Tomi NA wrote:

Re: transient objects: NPE on a.setToB(new B())

2006-11-25 Thread Andrus Adamchik
Yeah, sometimes quiet Saturday afternoons is the only time left to hack Cayenne :-) Andrus On Nov 25, 2006, at 1:05 PM, Tomi NA wrote: 2006/11/25, Andrus Adamchik [EMAIL PROTECTED]: Yeah, at the moment for the relationships to work, objects have to be registered with DataContext. In 3.0

Another success story

2006-11-26 Thread Andrus Adamchik
Zvonimir Spajic just sent me a note about a Cayenne-based application his company wrote for Unilever Germany (according to Wikipedia Unilever is a 50 billion USD company owning a bunch of consumer brands). Very cool - thanks for the information. I put it on our success stories page.

Re: can't modify relationships in validateForUpdate()?

2006-11-27 Thread Andrus Adamchik
I should plug my usual check out 3.0 lifecycle callbacks mantra :-) http://cwiki.apache.org/CAYDOC/lifecycle-callbacks.html of course to get this functionality, you'd need to build Cayenne from SVN. Hopefully we'll restore the nightly builds someday. And even better - graduate from Apache

Re: can't modify relationships in validateForUpdate()?

2006-11-27 Thread Andrus Adamchik
Actually IIRC we did allow to do arbitrary modifications to objects within validate* at some point. And checking the code, I see where you getting this exception now. Could you please submit a bug report? It should be fairly easy to fix it (although it will add a bit of overhead on commit,

Re: can't modify relationships in validateForUpdate()?

2006-11-27 Thread Andrus Adamchik
I just checked in the fix. Also I described in the docs how validation should behave when user methods have side effects: http://cwiki.apache.org/CAYDOC/dataobject-validation.html Andrus On Nov 27, 2006, at 8:23 PM, Bryan Lewis wrote: Thanks! I entered an issue CAY-712. Andrus Adamchik

Re: NullPointerException when setting deletion rules

2006-12-01 Thread Andrus Adamchik
Hmm... I'd say Cayenne should be smarter about this case. Could you please open a bug report? In the meantime you may have to manually break relationship cycles before deleting objects. E.g.: ti.setToOneTarget(room, null, false); Andrus On Nov 29, 2006, at 1:48 AM, Peter wrote: Hallo!

<    1   2   3   >