Re: [ANN] Cayenne 4.1 goes final

2020-07-23 Thread Malcolm Edgar
Great to see this release go GA. Regards Malcolm Get Outlook for iOS From: Andrus Adamchik Sent: Friday, July 24, 2020 3:52:35 PM To: user@cayenne.apache.org ; d...@cayenne.apache.org Subject: [ANN] Cayenne 4.1 goes final Very excited to

Re: Types.OTHER

2020-06-15 Thread Malcolm Edgar
That sounds like a great approach to me. regards Malcolm On Mon, Jun 15, 2020 at 9:49 PM Andrus Adamchik wrote: > > > > On Jun 9, 2020, at 5:54 PM, John Huss wrote: > > > > 2) Regarding skipping parsing when just going straight back out again to > > serialization - I have felt the reluctance (

Re: Types.OTHER

2020-06-10 Thread Malcolm Edgar
Hi All, For my use case I was simply looking for Java String mapping to underlying MySQL (JSON data type) and Postgres (JSON or JSONB data types). I would generally be rendering this JSON text directly in a REST API, and not going through Java complex object serialization pipeline. I think if pe

Building Master Branch

2020-05-26 Thread Malcolm Edgar
Hi All, I am wanting to build the Cayenne master branch to explore adding support for Postgres JSON, JSONB data types. I am getting the following build error resolving the cayenne-maven-plugin when building on Windows or Linux / WSL. Does anyone have suggestions for how to resolve this? Thanks

Re: MySQL JSON Support

2020-05-06 Thread Malcolm Edgar
Lists and Maps. You can define an > ExtendedType subclass to read the value as a string and parse into a > map/list using Jackson's ObjectMapper. > > On Mon, May 4, 2020 at 11:23 PM Malcolm Edgar > wrote: > > > Hi All, > > > > I was hoping to use the JS

MySQL JSON Support

2020-05-04 Thread Malcolm Edgar
Hi All, I was hoping to use the JSON features in MySQL 5.7 and wondered if anyone had used with with Cayenne. I was hoping to use Named Queries to perform JSON specific queries, but treat it as a String otherwise with the Cayenne classes. Any comments or recommendations would be appreciated.

Re: [ANN] Apache Cayenne 4.0 final is released

2018-12-05 Thread Malcolm Edgar
Awesome news guys, my favorite Apache project. :) regards Malcolm Edgar On Sat, Dec 1, 2018 at 9:23 PM Andrus Adamchik wrote: > I only took me 3.5 month to blogging about 4.0, but I finally did it :) > > https://twitter.com/andrus_a/status/1068810303121629184 > > Andrus > >

Re: In memory DB for unit testing

2018-05-15 Thread Malcolm Edgar
We use H2 database extensively for unit tests, it is great for this purpose. regards Malcolm On Thu, May 10, 2018 at 3:57 PM, Andrus Adamchik wrote: > We do. If we are talking about Bootique, for now we decided to focus on > simple examples at https://github.com/bootique-examples . > > But I ca

Re: a jdk question

2018-02-06 Thread Malcolm Edgar
+1, same have been using it in production with Java 8 for 12 months across lots of servers with GC1 enabled. regards Malcolm Edgar On Sat, Jan 27, 2018 at 12:45 AM, Mike Kienenberger wrote: > I've been running 3.1 under Java 8 in production for years. > > On Fri, Jan 26, 20

Re: Java 8

2017-07-30 Thread Malcolm Edgar
+1 regards Malcolm Edgar On Fri, Jul 28, 2017 at 6:36 PM, Savva Kolbachev wrote: > Here is my +1 as well. > > On Thu, Jul 27, 2017 at 11:16 PM, Musall, Maik > wrote: > > > +1 > > > > > Am 27.07.2017 um 14:35 schrieb Nikita Timofeev < > > n

Re: Query Isolation - Dirty Reads

2016-04-14 Thread Malcolm Edgar
enne.apache.org/docs/4.0/cayenne-guide/persistent-objects-objectcontext.html#transactions > > > On Apr 13, 2016, at 3:28 PM, Malcolm Edgar > wrote: > > > > Hi Guys, > > > > Any recommendations on the best way to perform dirty reads with Cayenne. > > > > Should we r

Query Isolation - Dirty Reads

2016-04-13 Thread Malcolm Edgar
Hi Guys, Any recommendations on the best way to perform dirty reads with Cayenne. Should we resolve the connection object and change transaction isolation level, perform the dirty query and then revert back to serializable ? regards Malcolm Edgar

Re: JDBC Statement Timeout

2014-10-14 Thread Malcolm Edgar
OLTP production usage? thanks Malcolm Edgar On Wed, Oct 15, 2014 at 10:40 AM, Andrus Adamchik wrote: > Yep, that's one way of doing it, though requiring to use a custom query > everywhere. A DI alternative of the same solution is to do something like > this in a

JDBC Statement Timeout

2014-10-12 Thread Malcolm Edgar
docs/api/java/sql/Statement.html#setQueryTimeout%28int%29 Thanks in advance for any help. regards Malcolm Edgar

Re: [ANN] Cayenne 3.1 final release

2014-10-08 Thread Malcolm Edgar
Well done everyone. Thanks for your awesome work. Cayenne is the best Java ORM in town, it rocks. regards Malcolm Edgar On Tue, Sep 30, 2014 at 11:55 PM, Emanuele Maiarelli < maiarelli.emanu...@gmail.com> wrote: > Congratulations to cayenne commiters! > > DI is very handy w

Cayenne and AWS RedShift

2014-09-29 Thread Malcolm Edgar
Hi All, Has anyone been using Cayenne with AWS RedShift ? Its an OLAP database derived from PostgreSql regards

Apple Retina Display and Cayenne Modeller

2014-01-08 Thread Malcolm Edgar
Hi All, Has anyone had any issues running the Cayenne Modeller on an Apple Retina display. I recently had a new Dell from work with a very high resolution display and the Cayenne Modeller did not scale at all well it was way to small to be usable. I sent the computer back ! regards

Which Cayenne Version to use ?

2013-07-23 Thread Malcolm Edgar
the release, but I want understand peoples experience with 3.1, is it ready for prime time? regards Malcolm Edgar

Re: Scale out

2013-05-31 Thread Malcolm Edgar
what about doing something virtual with a Connect session or eqquivalent. regards Malcolm On 31/05/2013, at 10:38 PM, Andrus Adamchik wrote: > > On May 31, 2013, at 3:21 PM, Christian Grobmeier wrote: > >> Thanks all for your comments and the ideas >> Looks like it is not an easy task and I

Re: Scale out

2013-05-29 Thread Malcolm Edgar
I have found using Caching Groups with relatively short timeouts 15 seconds, can have a huge performance benefit while still keeping most data quite fresh. On Thu, May 30, 2013 at 11:21 AM, Mike Kienenberger wrote: > And be careful not to overdo it. I made that mistake in my first > ecommerce

Re: Upgrading Applications from Cayenne 3.0 to 3.1

2013-05-28 Thread Malcolm Edgar
the same. > > Andrus > > On May 25, 2013, at 8:36 AM, Malcolm Edgar wrote: > >> Hi All, >> >> I would like hear about peoples experiences upgrading web applications from >> Cayenne 3.0 to 3.1 ? >> >> http://cayenne.apache.org/docs/3.1/upgrade-g

Upgrading Applications from Cayenne 3.0 to 3.1

2013-05-24 Thread Malcolm Edgar
Malcolm Edgar

Re: Add ActiveRecord support to Cayenne

2012-12-29 Thread Malcolm Edgar
I think Andrus comment was directed at me. I didn't want to offend anyone. However I am worried that this idea will lead to bad practices, with people hanging query code on the entities, and business rules etc. which leads to highly coupled code. regards On Fri, Dec 28, 2012 at 3:47 AM, emeka o

Re: Add ActiveRecord support to Cayenne

2012-12-27 Thread Malcolm Edgar
persisting when you have a large object graph. I also don't think is provides a good way of supporting transactional semantics. regards Malcolm Edgar On Thu, Dec 27, 2012 at 7:51 PM, emeka okafor wrote: > There is not much I can tell you about WO than pointing you to the > following

Re: How to work on encryption/decryption

2012-10-16 Thread Malcolm Edgar
Please also look at Apache Shiro, it provides very nice wrappers around JCE and incorporates crypto best practices. Regards Malcolm Edgar Sent from my iPad On 06/10/2012, at 1:20 AM, Mike Kienenberger wrote: > I have always done my encryption at the application level. > > I think

Re: NuoDB Cayenne Adaptor

2012-08-23 Thread Malcolm Edgar
an store more > than a few gigabytes of data, it'll be good enough for many applications :) > > Good luck, > Andrus > > > On Aug 15, 2012, at 3:01 PM, Malcolm Edgar wrote: > > Hi Guys, > > > > Thanks for the feedback. > > > > In terms of my in

Re: NuoDB Cayenne Adaptor

2012-08-16 Thread Malcolm Edgar
hing similar with OrientDB or Cassandra (CQL)? > > Regards, > Tore Halset. > [1] http://cayenne.apache.org/running-unit-tests.html > > On 14. aug. 2012, at 14:00, Malcolm Edgar wrote: > > > Hi All, > > > > I am interested in developing a Cayenne Adaptor for the NuoDB dat

Re: NuoDB Cayenne Adaptor

2012-08-15 Thread Malcolm Edgar
interested. regards Malcolm Edgar On Wed, Aug 15, 2012 at 9:15 AM, Aristedes Maniatis wrote: > On 14/08/12 11:32pm, Aristedes Maniatis wrote: > >> On 14/08/12 10:00pm, Malcolm Edgar wrote: >> >>> Hi All, >>> >>> I am interested in developing a Cayenne A

NuoDB Cayenne Adaptor

2012-08-14 Thread Malcolm Edgar
create a NuoDBAdaptor extending * org.apache.cayenne.dba.JdbcAdapter*. Is this the best place to start, does anyone have any recommendations, or would like to be involved ? regards Malcolm Edgar

Re: [ann] Apache Cayenne 3.1 goes beta

2012-06-12 Thread Malcolm Edgar
Great news, thanks for all your efforts. regards On Tue, Jun 12, 2012 at 9:17 PM, Andrus Adamchik wrote: > Very happy to announce Cayenne 3.1 beta! The full announcement can be > found here: > > http://cayenne.apache.org/2012/06/12/cayenne-31-beta-released.html > > Download is here of course: >

Re: Spring Security authentication

2012-05-23 Thread Malcolm Edgar
You need to put a Cayenne DataContext Filter in front of the SpringSecurity filter. regards On Wed, May 23, 2012 at 3:36 PM, Tony Giaccone wrote: > > > I'm trying to implement a Spring Security Authentication using Cayenne. > > The problem is that when the spring security gets called, there's n

Re: Continual creation is a memory leak

2011-12-13 Thread Malcolm Edgar
plugged in with a Cayenne DataSourceFactory. regards Malcolm Edgar On Tue, Dec 13, 2011 at 5:22 AM, Chris Murphy wrote: > I'm using JProfiler to look for memory leaks. I've used it to see that > they've been plugged since I implemented Robert's suggestion of hav

Re: [OT] You're all a bunch of Cake Mixers

2011-10-19 Thread Malcolm Edgar
I love it,that annotation slide was beautiful. regards Malcolm On Wed, Oct 19, 2011 at 9:04 PM, Hugi Thordarson wrote: > Hey, Cayenne Developers! Stop destroying our joy of programming! > > http://vimeo.com/28885655 > > - hugi > > PS: Sorry for the off topic post, couldn't resist…

Re: [ANN] Cayenne 3.1M3 release

2011-09-26 Thread Malcolm Edgar
Great news guys, well done. Do you have a view as to when 3.1 will go into RC phase? regards Malcolm Edgar On Mon, Sep 26, 2011 at 5:19 PM, Andrus Adamchik wrote: > We are glad to announce 3.1M3 release of Cayenne. This is an important > milestone on our way to Beta. In fact there is

Re: Cayenne Transactions

2011-09-12 Thread Malcolm Edgar
, Cayenne does not actually need Spring to fill in the gaps like HIbernate does. regards Malcolm Edgar On Mon, Sep 12, 2011 at 12:41 AM, stéphane Lestoclet wrote: > Hi, > > > The Cayenne documentation states the following : > > Chapter: Understanding Transactions >>It work

Re: Composite entity model

2010-11-09 Thread Malcolm Edgar
Hi Guys, Please take a look at the attached code which marshalls between ValueObject (POJO) and CDO. regards Malcolm Edgar On Wed, Nov 10, 2010 at 7:26 AM, Andrus Adamchik wrote: > I wish somebody just wrote a marshaller for CDO. One day I may do it if > nobody beats me on it. >

Re: Cayenne 3.0 is released

2010-05-07 Thread Malcolm Edgar
:) I love a good plot. I would really like to see a unified cache introduced in future versions of Cayenne. regards Malcolm Edgar On Fri, May 7, 2010 at 7:34 PM, Aristedes Maniatis wrote: > On 7/05/10 5:50 PM, Arnaud Garcia wrote: >> >> Maybe a book now ? like cayenne in ac

Re: Cayenne 3.0 is released

2010-05-06 Thread Malcolm Edgar
Yahoo :) Love Cayenne, just love it. On Fri, May 7, 2010 at 10:15 AM, Marek Šabo wrote: > Congratulations on your milestone in this "state of art" ORM! > > -- > Marek Šabo > > >

Connection Leak Detection

2010-04-06 Thread Malcolm Edgar
e have any good approaches for diagnosing the cause of the potential "leak". regards Malcolm Edgar

Re: Cayenne pattern quesiton

2010-03-31 Thread Malcolm Edgar
t think stateful entities objects should be be mixed up with static finder methods. regards Malcolm Edgar On Wed, Mar 31, 2010 at 6:10 PM, Andrus Adamchik wrote: > Also I suspect I am not using a classic version of DAO. My DAO's are morphed > with the "business layer" and can

Re: Cayenne 3.0 RC1 released

2010-01-06 Thread Malcolm Edgar
Great news guys, thanks for all the hard work. Will there be any publicity push or will this wait for 3.0 final? regards Malcolm Edgar On Wed, Jan 6, 2010 at 8:01 PM, Laurent Marchal wrote: > Hello, > >Congratulations for this release candidate ! I had an issue quite some >

Re: [ANN] new committer: Evgeny Ryabitskiy

2009-12-10 Thread Malcolm Edgar
Welcome on board Evgeny yo are joining a great project. I hope you have some fun. regards Malcolm Edgar 2009/12/11 Aristedes Maniatis > The Cayenne team welcomes Evgeny Ryabitskiy as a committer. In recognition > of his work so far on Cayenne, he has been voted by the Project Mana

Re: Query Cache and DataDomain Snap Shot Cache

2009-09-23 Thread Malcolm Edgar
Thanks for that information I will give it ago. Do you have an example of a listener which performs a flush. This is really what I am after, as there are a relatively small tables which need to be synched, others don't need to be. regards Malcolm Edgar On Wed, Sep 23, 2009 at 11:51 PM, A

Query Cache and DataDomain Snap Shot Cache

2009-09-23 Thread Malcolm Edgar
on is not updated. I presume the answer to this problem is using JGroups, if so does anyone have a configuration where its constrained to localhost. I don't really want to be broadcasting notification messages across the network. regards Malcolm Edgar

Re: Memory Management Practices

2009-08-13 Thread Malcolm Edgar
s is very cheap. I can provide an good DataContextFilter we use in the Apache Click project if you want. This is possibly something we could include in Apache Cayenne as an alternative Filter. regards Malcolm Edgar On Fri, Aug 14, 2009 at 12:23 PM, Joe Baldwin wrote: > Then I don't think t

Re: sync cayenne cache in two web apps

2009-07-30 Thread Malcolm Edgar
ry caches in 30 seconds. This saves the database from being hammered by frequent request. cache.capacity=5000 cache.algorithm=com.opensymphony.oscache.base.algorithm.LRUCache # Cayenne specific properties: # Default refresh period in seconds # (used for all cache groups not explicitly overriding it here)

Re: sync cayenne cache in two web apps

2009-07-29 Thread Malcolm Edgar
You can also use OSCache with Cayenne and have the cached queries expire frequently, i.e. after 30 seconds regards Malcolm Edgar On Thu, Jul 30, 2009 at 6:36 AM, Mike Kienenberger wrote: > Before you make your own custom solution, you might want to read up on > Javagroup.  It might no

Re: Cayenne Fetch Limit behaviour ?

2009-06-18 Thread Malcolm Edgar
, you just need to run them > against SQLServer: > > http://cayenne.apache.org/running-unit-tests.html > > Andrus > > On Jun 18, 2009, at 1:17 PM, Malcolm Edgar wrote: > >> Hi Robert, >> >> JIRA and patch below. This does not include an automated unit

Re: Cayenne Fetch Limit behaviour ?

2009-06-18 Thread Malcolm Edgar
Hi Robert, JIRA and patch below. This does not include an automated unit test, however we have been testing it successfully on our servers. https://issues.apache.org/jira/browse/CAY-1244 regards Malcolm Edgar On Wed, Jun 17, 2009 at 12:20 PM, Robert Zeigler wrote: > setFetchLimit has b

Re: Cayenne Fetch Limit behaviour ?

2009-06-17 Thread Malcolm Edgar
limit = metadata.getFetchLimit(); if (limit > 0) { buffer.replace(0, 6, "SELECT TOP " + limit); } } } Note this does not perform a fetchOffset, still looking to see how to do with with SQL Server. regards Malcolm Edgar On Wed, Jun 17, 2009 at 9:

Re: Cayenne Fetch Limit behaviour ?

2009-06-16 Thread Malcolm Edgar
Thanks Robert, I will look at writing a patch. SQL Server syntax is a little different from other databases in that the limit is set after the select. select TOP 20 customer_id, first_name from customer; regards Malcolm Edgar On Wed, Jun 17, 2009 at 12:20 PM, Robert Zeigler wrote

Re: Cayenne Fetch Limit behaviour ?

2009-06-16 Thread Malcolm Edgar
; // Oracle select col from tbl where rownum<=20; // Microsoft SQL select top 20 col from tbl; We are going to have to revisit a bunch of code after figuring this out :( regards Malcolm Edgar On Wed, Jun 17, 2009 at 11:37 AM, Robert Zeigler wrote: > I don't think the behavior changed, per

Cayenne Fetch Limit behaviour ?

2009-06-16 Thread Malcolm Edgar
killing our application with OOM errors. Did this behaviour change? We are using Cayenne 3.0M5 regards Malcolm Edgar

Re: Cayenne 3.0M6 released

2009-05-29 Thread Malcolm Edgar
Great to see M6 release out guys. My favourite ORM keeps getting better. regards Malcolm Edgar On Fri, May 29, 2009 at 8:43 PM, Aristedes Maniatis wrote: > Another release on the journey to Cayenne 3.0! This milestone adds a > plethora of new features including quoting of identifiers (

Re: 3.0 cache documentation

2009-05-04 Thread Malcolm Edgar
Great read thanks for providing that. Have you found big performance improvements using OSCache? regards Malcolm Edgar On Mon, May 4, 2009 at 8:33 PM, Andrus Adamchik wrote: > Finally got around to documenting how the caching works in the latest > Cayenne: > > http://cayenne.ap

Re: Lifecycle Design

2009-04-08 Thread Malcolm Edgar
Hi Joe, Your singleton cache is going to need to be update periodically if there are changes to the under lying database from other sources. regards Malcolm Edgar On Thu, Apr 9, 2009 at 7:45 AM, Joe Baldwin wrote: > I *think* this is a life-cycle question, but there may be more to

Re: General queries

2009-04-08 Thread Malcolm Edgar
st of RowMap objects, with each map representing a row, with the column names as the key. regards Malcolm Edgar On Wed, Apr 8, 2009 at 3:46 PM, Andrus Adamchik wrote: > Cayenne 3.0 includes support for EJBQLQuery which seem like you what you > need here: > >  http://cayenne.apache.o

Re: How to create Meaningful Primary Keys? JUST SAY NO TO MEANINGFUL POINTERS!

2009-02-02 Thread Malcolm Edgar
I think what we are talking about are surrogate primary keys. http://en.wikipedia.org/wiki/Surrogate_key Which is generally accepted as a best practice (well mostly, depending on the DBA). regards Malcolm Edgar On Tue, Feb 3, 2009 at 1:48 AM, Matt Kerr wrote: > > Do poeple agree w/ m

Re: Cayenne 3.0M5 released today

2008-12-15 Thread Malcolm Edgar
Fantastic guys, I can't wait to try it out. It has been great to see the Cayenne project and team grow, and the very high level of quality you are achieving with this framework. regards Malcolm Edgar On Tue, Dec 16, 2008 at 3:57 AM, Laurent Marchal wrote: > Nice news, I will try t

Re: How to prevent Cayenne from fetching BLOB fields ?

2008-10-07 Thread Malcolm Edgar
One pattern we use to address this is to make a child table which contains the blob field and a parent foreign key. Its not ideal but it works. regards Malcolm Edgar On Wed, Oct 8, 2008 at 7:11 AM, Tore Halset <[EMAIL PROTECTED]> wrote: > Hello. > > On 7. okt.. 2008, at 18.37, Pi

Re: Configuring which dataDomain to use in servlet container

2008-07-30 Thread Malcolm Edgar
This is exactly what I would recommend. regards Malcolm Edgar On Wed, Jul 30, 2008 at 7:00 PM, Ian Jamieson <[EMAIL PROTECTED]> wrote: > Funny how you figure things out once u already asked the dumb question ^^. > > I ended up writing a small class to ta

Re: Cayenne named query problem on Oracle 10g

2008-07-17 Thread Malcolm Edgar
Hi Parth, I would recommend that you provide more contextual information for this issue. A stacktrace, a describe of the table, what Oracle database version and JDBC driver you are using. regards Malcolm Edgar On Fri, Jul 18, 2008 at 3:42 PM, Parth Pandya <[EMAIL PROTECTED]> wrote: > &

Re: Modeling heterogeneous entities (inheritance issue)

2008-07-10 Thread Malcolm Edgar
t to write reports against. The composition based design is pretty well the flip side of the Metadata design. regards Malcolm Edgar On Thu, Jul 10, 2008 at 8:03 PM, ihawk ihawker <[EMAIL PROTECTED]> wrote: > Hello! > > > I am trying to model a list of heterogeneous entities

Re: Cayenne and JAX-WS / JAXB

2008-05-27 Thread Malcolm Edgar
I think the commercial app servers have just stablised on Java 5. I imagine it will be a while (years) before they are Java 6. regards Malcolm Edgar On Tue, May 27, 2008 at 7:23 PM, Andrus Adamchik <[EMAIL PROTECTED]> wrote: > My understanding that this is for the "classic"

LifecycleListener is great

2008-05-17 Thread Malcolm Edgar
Hi All, Just a quick word of appreciation for the LifecycleListener support in 3.0. I have completed refactoring an audit logging service to use this feature and it works great. This is a much more robust method of doing auditing at an application level. regards Malcolm Edgar

Re: Newbie question about to-many ordered list

2008-05-06 Thread Malcolm Edgar
I tend to do this: public List getCustomers() { List customers = super.getCustomers(); Collections.sort(customers, new StringComparator(Customer.NAME_PROPERTY)); return customers; } regards Malcolm Edgar On Tue, May 6, 2008 at 4:58 PM, Aristedes Maniatis <[EMAIL PROTECTED]>

Re: Hollow Object issue

2008-04-17 Thread Malcolm Edgar
OK I found my problem it, I had the foreign key in a related DbEntity defined as a BINARY. I will close the issue. regards Malcolm Edgar On Thu, Apr 17, 2008 at 8:18 PM, Andrus Adamchik <[EMAIL PROTECTED]> wrote: > > On Apr 17, 2008, at 1:13 PM, Malcolm Edgar wrote: > > Hi A

Re: Hollow Object issue

2008-04-17 Thread Malcolm Edgar
Hi Andrus, the column is a MySQL 5.0 BIGINT, I have tried changing this to an INTEGER and I still had the same problem. regards Malcolm Edgar On Thu, Apr 17, 2008 at 8:08 PM, Andrus Adamchik <[EMAIL PROTECTED]> wrote: > > On Apr 17, 2008, at 12:48 PM, Malcolm Edgar wrote: &g

Re: Hollow Object issue

2008-04-17 Thread Malcolm Edgar
nment I am using is Cayenne 3.0 M3 on JDK 1.5.0_15 regards Malcolm Edgar On Thu, Apr 17, 2008 at 3:55 PM, Malcolm Edgar <[EMAIL PROTECTED]> wrote: > Hi Guys, > > I have a nasty problem with attempting to perform a refetchObject() on a > hollow object. This is the DataObject toSt

Hollow Object issue

2008-04-16 Thread Malcolm Edgar
deQueryAction.java:58) at org.apache.cayenne.access.DataNode.performQueries(DataNode.java:230) ... 60 more I presume there is an issue with the PK value bing a hash string value. Any advice here am I doing something wrong? regards Malcolm Edgar

Re: java.lang.ClassFormatError

2008-04-14 Thread Malcolm Edgar
I would recommend including a stracktrace of the error, to help debug this. regards Malcolm Edgar On Mon, Apr 14, 2008 at 1:34 PM, Andreas Bobek <[EMAIL PROTECTED]> wrote: > Hello, > > I use cayenne 2.0.4, tomcat 5.5 and jdk 1.5. > I generated (cgen) a superclass (_Bask

Re: Paging in web application

2008-04-02 Thread Malcolm Edgar
/avoka.pc.telstra.flex/ regards Malcolm Edgar On Wed, Apr 2, 2008 at 9:10 PM, Andrus Adamchik <[EMAIL PROTECTED]> wrote: > Hi Malcolm, > > Here they are: > > (3.0M1) https://issues.apache.org/cayenne/browse/CAY-810 > (3.0M4, unreleased) https://issues.apache.or

Re: Paging in web application

2008-04-02 Thread Malcolm Edgar
What were the big paging performance improvements in 3.0? regards Malcolm Edgar On Wed, Apr 2, 2008 at 7:27 PM, Robert Zeigler <[EMAIL PROTECTED]> wrote: > Typically, you're just going to use a paginated query: > SelectQuery q = new SelectQuery(Artist.class); > q.setPageSiz

Re: DataObjectUtils.objectForPK

2008-03-26 Thread Malcolm Edgar
Yes, it maybe but all the build scripts were building against JDK 1.5, including Click. Confusing is that a college was executing a similar code path on JDK 1.6 and did not have any issues. I will investigate further. regards Malcolm Edgar On Wed, Mar 26, 2008 at 8:24 PM, Andrus Adamchik

Re: DataObjectUtils.objectForPK

2008-03-25 Thread Malcolm Edgar
Hi All, The resolution to this issue for me was: dataObject = (DataObject) DataObjectUtils.objectForQuery(getDataContext(), new ObjectIdQuery(objectId, false, ObjectIdQuery.CACHE)); Should I raise a bug on this issue? regards Malcolm Edgar On Wed, Mar 26, 2008 at 11:04 AM, Malcolm Edgar

DataObjectUtils.objectForPK

2008-03-25 Thread Malcolm Edgar
(getDataContext(), dataClass, id); Runtime environment is Java 1.5, running on JBoss 4.0.3 Can anyone suggest a resolution here. regards Malcolm Edgar

Cayenne 3.0M3 and NamedQueries

2008-03-24 Thread Malcolm Edgar
// Does not work Map params = Collections.singletonMap("user", getUserDetails()); NamedQuery query = new NamedQuery("ToDoSubmissionsForUser", params); regards Malcolm Edgar

Re: Imports

2008-03-09 Thread Malcolm Edgar
application code had not performed a commit, e.g. a query operation. regards Malcolm Edgar On Mon, Mar 10, 2008 at 4:45 AM, Andrus Adamchik <[EMAIL PROTECTED]> wrote: > BTW, if there's no commit or rollback, and the transaction stays open > indefinitely, this would result in quic

Re: Imports

2008-03-07 Thread Malcolm Edgar
wondering if this is an artifact of the thread pool, ie maybe the same thread is coming back of the pool. regards Malcolm Edgar On Tue, Feb 19, 2008 at 8:31 PM, Malcolm Edgar <[EMAIL PROTECTED]> wrote: > Great! Thanks for that. > > regards Malcolm Edgar > > > > On Feb 19, 200

Re: Cayenne Transactions

2008-03-06 Thread Malcolm Edgar
Ok thanks for the info Andrus. Have been just writing a TransactionFilter for Click, and just wanted to know whether this was possible. Not something I would actually use. regards Malcolm Edgar On Fri, Mar 7, 2008 at 5:45 AM, Andrus Adamchik <[EMAIL PROTECTED]> wrote: > If the goal is

Cayenne Transactions

2008-03-06 Thread Malcolm Edgar
Can Cayenne Transactions be stored in a HttpSession? regards Malcolm Edgar

Re: Data Access Filters

2008-03-06 Thread Malcolm Edgar
Hi Adrian, thanks for the feedback. regards Malcolm Edgar On Thu, Mar 6, 2008 at 6:14 PM, Adrian Wiesmann <[EMAIL PROTECTED]> wrote: > Hello Malcolm, hello list > > > > Does anyone have any good Cayenne patterns for applying data security > > in queries. The sce

Data Access Filters

2008-03-05 Thread Malcolm Edgar
similar with Filters: http://www.hibernate.org/hib_docs/reference/en/html/filters.html regards Malcolm Edgar

[annou] Click Framework version 1.4 is now available

2008-03-03 Thread Malcolm Edgar
Malcolm Edgar

Re: Big list'o questions.....

2008-03-02 Thread Malcolm Edgar
We use Cayenne SQL Queries (named queries) for doing reports and complex joins, and have it return light weight RowMap objects. This is a great facility, you get all the benefit of SQL access, but don't have to write all the supporting JDBC code. regards Malcolm Edgar On Mon, Mar 3, 2008

Re: Cayenne and Spring (a Hibernate inspired question)

2008-02-28 Thread Malcolm Edgar
process to clean up abandoned applications, i.e. use a Quartz job select all, pending status older than a configured period. regards Malcolm Edgar http://click.sourceforge.net On Thu, Feb 28, 2008 at 2:15 AM, Michael Gentry <[EMAIL PROTECTED]> wrote: > When I used Cayenne with a Tape

Re: on hibernate vs. cayenne

2008-02-28 Thread Malcolm Edgar
Cayenne map of properties. regards Malcolm Edgar On Thu, Feb 28, 2008 at 1:47 AM, Robert Zeigler <[EMAIL PROTECTED]> wrote: > Since we've been on the topic of hibernate and cayenne... I had a > question for those cayenne users who have used hibernate. > On the tapestry user lis

Re: How to migrate from Hibernate to Cayenne?

2008-02-21 Thread Malcolm Edgar
based on their design. regards Malcolm Edgar On Fri, Feb 22, 2008 at 1:49 AM, Borut Bolčina <[EMAIL PROTECTED]> wrote: > Hello, > > since when can modeler generate POJOs? AFAIK those generated classes extend > CayenneDataObject which in turn implements three interfaces,

Re: Imports

2008-02-19 Thread Malcolm Edgar
Great! Thanks for that. regards Malcolm Edgar On Feb 19, 2008 11:18 AM, Andrus Adamchik <[EMAIL PROTECTED]> wrote: > Just use your own transactions, then 'commitChanges' turns into 'flush': > > http://cayenne.apache.org/doc/understanding-transactions.html >

Re: Imports

2008-02-17 Thread Malcolm Edgar
Cayenne PK generation strategy, are the highest/last table id values they maintained in memory? regards Malcolm Edgar On Feb 18, 2008 3:16 PM, Aristedes Maniatis <[EMAIL PROTECTED]> wrote: > > On 18/02/2008, at 2:07 PM, Malcolm Edgar wrote: > > > Is there a way in Ca

Imports

2008-02-17 Thread Malcolm Edgar
. Is there a way in Cayenne, possibly using Transactions, that we can perform this import, do inserts and queries against the transaction and only commit/rollback at the end? regards Malcolm Edgar

[annou] Click Framework version 1.4 RC3 is now available

2008-02-07 Thread Malcolm Edgar
fixed and many improvements made. For a full list of changes please see: http://click.sourceforge.net/docs/roadmap-changes.html For online examples please see: http://www.avoka.com:8080/click-examples regards Malcolm Edgar

[annou] Click Framework version 1.4 RC2 is now available

2008-01-02 Thread Malcolm Edgar
Hi All, Click Framework version 1.4 RC2 is now available. This is primarily a bug fix release, but does include some new features. Please see the changes at: http://click.sourceforge.net/docs/roadmap-changes.html regards Malcolm Edgar

Re: [JIRA] Created: (CAY-925) Support Entity/Table scope caching

2007-11-28 Thread Malcolm Edgar
Hi Andrus, Thanks for the advice. To do this I presume I need to have Level 2 (local VM) caching enabled, and then set caching policy as appropriate for the query: // For most of the queries QueryMetadata.LOCAL_CACHE // For cached lookup data QueryMetadata.SHARED_CACHE regards Malcolm Edgar

Cayenne 3.0M2 for Production

2007-11-26 Thread Malcolm Edgar
Hi All, I would like to know peoples experience in using Cayenne 3.0M2 for Production applications, or is Cayenne 2.0.x still the recommended release. I am looking a upgrading our Cayenne 1.2.x applications. By the way I like the free search field in the Cayenne modeler. regards Malcolm Edgar

Re: Spring light integration

2007-11-14 Thread Malcolm Edgar
That is all you should need to do. regards Malcolm Edgar On Nov 14, 2007 11:52 PM, Landry Soules <[EMAIL PROTECTED]> wrote: > Thanks Malcolm. > > I already set my web.xml this way : > > >CayenneFilter > >org.apache.cayenne.co

Re: Spring light integration

2007-11-11 Thread Malcolm Edgar
Hi Landry, You will need to setup a DataContext servlet filter in your web application to bind a DataContext to the request thread. regards Malcolm Edgar On Nov 12, 2007 6:07 AM, Landry Soules <[EMAIL PROTECTED]> wrote: > Hello, > > I'm currently working on a web project de

Re: [ANN] Cayenne 1.2.4/2.0.4 released

2007-10-13 Thread Malcolm Edgar
Hi All, Great to see a new release out. The release note only point to one change in this release, are their more changes than this? CAY-698 "Null ObjectId" exception from DataContext regards Malcolm Edgar On 10/13/07, Florin T.PATRASCU <[EMAIL PROTECTED]> wrote: > &g

Re: Best practices for using Cayenne's ObjectContext in a web framework?

2007-09-23 Thread Malcolm Edgar
Hi Florin, I generally use a new DataContext per thread, with a Filter binding the DataContext to request thread. Please see the attached example. regards Malcolm Edgar http://click.sourceforge.net On 9/23/07, Florin T.PATRASCU <[EMAIL PROTECTED]> wrote: > > Hi there, > >

[annou] Click Framework version 1.4 RC1 is now available

2007-09-16 Thread Malcolm Edgar
default. Note backward compatibility Cayenne 1.2.x JARS are provide in the dist directory. Please see release notes for other changes and bug fixes: http://click.sourceforge.net/docs/roadmap-changes.html regards Malcolm Edgar

  1   2   >