Using GitHub to submit changes

2011-10-26 Thread John Huss
I see that there is a mirror of the cayenne trunk on GitHub herehttps://github.com/apache/cayenne. Is this a good way to submit changes - by forking and creating a pull request? Or is it better to use the Jira and attach a patch? Any preference? By the way, I have just started using Cayenne in

Re: Using GitHub to submit changes

2011-10-27 Thread John Huss
is now closer than ever to offering Git as a repository option in addition to SVN, but for now the process is what Ari described. Cheers, Andrus On Oct 26, 2011, at 6:14 PM, John Huss wrote: I see that there is a mirror of the cayenne trunk on GitHub herehttps://github.com/apache/cayenne

Handling database creation and migration

2011-12-20 Thread John Huss
.* * * *Is there any interest in making this part of Cayenne? What questions do you have?* * * *Thanks,* *John Huss*

Re: Handling database creation and migration

2011-12-21 Thread John Huss
On Tue, Dec 20, 2011 at 8:47 PM, Aristedes Maniatis a...@maniatis.orgwrote: On 21/12/11 7:01 AM, John Huss wrote: *I’m interested in having more flexible support for database migrations in Cayenne, so I wrote a new migrations API on top of the existing DbMerger constructs. My question

Re: Handling database creation and migration

2011-12-21 Thread John Huss
On Wed, Dec 21, 2011 at 7:06 AM, Andrus Adamchik and...@objectstyle.orgwrote: This was the point that I was making in my comment in https://issues.apache.org/jira/browse/CAY-1633 . A DB migrations mechanism is very important to Cayenne users (as of course their apps are using some DB). But

Re: Handling database creation and migration

2011-12-21 Thread John Huss
On Wed, Dec 21, 2011 at 2:02 PM, Andrus Adamchik and...@objectstyle.orgwrote: I am checking my migrations archive, and Cayenne-friendly schema alterations or simple INSERT/UPDATE/DELETE make up probably 50% of those. The rest are things like these: (1) LOAD DATA LOCAL INFILE

Re: Handling database creation and migration

2011-12-22 Thread John Huss
there are more such changes that I overlooked. Cheers, Andrus On Dec 20, 2011, at 3:01 PM, John Huss wrote: *Hopefully the list supports HTML email; if not view it here https://docs.google.com/document/d/1-ZGTCZdw5sksamJCKMT4bdw0zhrftKQptIgozk3ojbc/edit .* * * *I’m interested

Building in eclipse with m2e

2011-12-28 Thread John Huss
I'm not able to build cayenne in eclipse with m2e due to the following errors. Previously I have just removed the offending lines as a work-around, but I'd like to get it working correctly. I'm not a maven user, so any help would be appreciated. Plugin execution not covered by lifecycle

Re: Building in eclipse with m2e

2011-12-29 Thread John Huss
to build from the command-line before m2e works in Eclipse. mrg On Wed, Dec 28, 2011 at 6:30 PM, John Huss johnth...@gmail.com wrote: I'm not able to build cayenne in eclipse with m2e due to the following errors. Previously I have just removed the offending lines as a work-around, but I'd

Re: Building in eclipse with m2e

2012-01-03 Thread John Huss
I still haven't gotten this to work, but I found out you can get it to ignore the error by doing quick fix and telling it to ignore it. That's better than editing the pom to remove the problem parts. On Thu, Dec 29, 2011 at 11:21 AM, John Huss johnth...@gmail.com wrote: Yes, I've run the build

Re: SelectQuery + Orderings

2012-01-26 Thread John Huss
SelectQuery(Class, Expression, ListOrdering) This one would be helpful for people migrating from WebObjects. On Thu, Jan 26, 2012 at 11:15 AM, Michael Gentry mgen...@masslight.netwrote: Any thoughts on updating SelectQuery.java to handle Orderings as: SelectQuery(Class, Expression, Ordering)

Re: SelectQuery + Orderings

2012-01-30 Thread John Huss
The qualifier building part has already been done in WebObjects/Project Wonder with ERXKeyhttp://webobjects.mdimension.com/hudson/job/Wonder/javadoc/which is basically just a wrapper around an attribute or relationship name that gives it type-safety and a bunch of methods for creating qualifiers.

Re: SelectQuery + Orderings

2012-01-31 Thread John Huss
Well, if your code is well designed your artist fetch logic is probably in the Artist class so the class name isn't needed. If you are doing something inside the class you can use a static import to move all the artist stuff into the namespace and then use it without qualification. On Tuesday,

Look at patch please?

2012-02-09 Thread John Huss
Could someone take a look at this issue: https://issues.apache.org/jira/browse/CAY-1648 It's a very small bug fix that's been open for a while. I'd appreciate either feedback or integration. Thanks! John

Re: Field-based Persistent

2012-02-29 Thread John Huss
On Wed, Feb 29, 2012 at 1:47 AM, Andrus Adamchik and...@objectstyle.orgwrote: So changing the topic, and taking to dev... On Feb 29, 2012, at 7:34 AM, John Huss wrote: My entity classes use explicit fields to store data instead of a Map, so when it tries to access the runtimeRelationshipX

Re: cayenne 3.1: configure mymodule

2012-03-14 Thread John Huss
Why don't you just use Cayenne Modeler to create an empty project (with just a DataDomain) and save it? You can then add everything to it at runtime. On Wed, Mar 14, 2012 at 10:07 AM, Sheldon waldemargol...@web.de wrote: Hello, I've create a custom module MyModule, where I bind

DataDomain.getNode(String nodeName)

2012-03-23 Thread John Huss
Shouldn't DataDomain.getNode(String nodeName) be called getDataNode instead? I see there is a deprecated getMap(String mapName) method. It seems like this should also be deprecated and replace with getDataNode. It's easy to miss othewise, since there is a getDataNodes() method get all nodes -

Re: New Committer: John Huss

2012-05-14 Thread John Huss
Thanks! I'm excited to be part of the team. I did a test commit as you described and everything seems to be in working order. John On Sat, May 12, 2012 at 5:00 AM, Andrus Adamchik and...@objectstyle.orgwrote: I'd like to welcome our new committer John Huss! John, from what I can tell your

Re: Cayenne Modeler Eclipse Plugin preview

2012-06-06 Thread John Huss
I was interested in trying out the eclipse plug-in and it wasn't working. I seem to have resolved the problem with a little change to the Manifest file that I just committed. It would nice to make this plugin available somewhere even if only as a link to the jar. It's easy enough to download

Re: [VOTE] Cayenne 3.1 beta 1

2012-06-08 Thread John Huss
+1 to proceed On Friday, June 8, 2012, Andrus Adamchik wrote: Hi guys, so any more questions/concerns about the release? We haven't received any votes yet. So we need to decide whether we should pull it or proceed. Thanks, Andrus On May 29, 2012, at 1:02 AM, Andrus Adamchik wrote: I

Inconsistent property name?

2012-06-12 Thread John Huss
I'm updated my app to the most recent 3.1 and I think I found one property name is wrong in org.apache.cayenne.configuration.Constants: cayenne.rop.service.timeout Seems to be inconsistent with the other properties, which all have an underscore after service, for example:

Re: Inconsistent property name?

2012-06-12 Thread John Huss
I created the JIRA here: https://issues.apache.org/jira/browse/CAY-1713

Re: Inconsistent property name?

2012-06-13 Thread John Huss
So I need to change this in both branches (3.1 and 3.2), correct? On Wed, Jun 13, 2012 at 1:32 AM, Andrus Adamchik and...@objectstyle.orgwrote: On Jun 13, 2012, at 12:01 AM, John Huss wrote: I created the JIRA here: https://issues.apache.org/jira/browse/CAY-1713 Cool. With other

Re: Need help with Cayenne board report

2012-06-18 Thread John Huss
Thanks Ari, I appreciate it. +1 for git. All my projects at work are in git now, and all my cayenne dev is in git too (on top of svn). On Sun, Jun 17, 2012 at 7:23 PM, Aristedes Maniatis a...@maniatis.orgwrote: I always forget about that report every three months. I created a draft here:

Adding a DI binding

2012-07-01 Thread John Huss
I'm trying to add a new DI binding and it's not working so I could use some help. At the usage site I have this: *@Inject* private *ToManyCollectionFactory* *collectionFactory*; @Override public Object resolveFault(Persistent sourceObject, String relationshipName) { return

Re: Adding a DI binding

2012-07-04 Thread John Huss
, then of course Cayenne injection will have no effect. Andrus On Jul 1, 2012, at 8:16 PM, John Huss wrote: I'm trying to add a new DI binding and it's not working so I could use some help. At the usage site I have this: @Inject private ToManyCollectionFactory collectionFactory

Re: Can we drop Java 1.5 support in Cayenne 3.2?

2012-07-05 Thread John Huss
What do you gain by moving up to Java 6? I can't think of anything except String.isEmpty and @Override annotations on interface implementations. On Thu, Jul 5, 2012 at 3:21 PM, Mike Kienenberger mkien...@gmail.comwrote: Java 1.5 isn't even available for my linux systems. On Thu, Jul 5, 2012

Re: [jira] [Created] (CAY-1724) Add 'Property' class for easier and better Expression creation

2012-07-11 Thread John Huss
: +1. I saw it used on one project and it was a nice concept. Andrus On Jul 11, 2012, at 7:30 AM, John Huss (JIRA) wrote: John Huss created CAY-1724: -- Summary: Add 'Property' class for easier and better Expression creation

Re: [jira] [Created] (CAY-1724) Add 'Property' class for easier and better Expression creation

2012-07-12 Thread John Huss
Zeigler wrote: Yes, it will be confusing. :) Robert On Jul 11, 2012, at 7/119:24 AM , John Huss wrote: Hmm, there is already a Property class in org.apache.cayenne.reflect. Where would this go? Perhaps org.apache.cayenne.exp or org.apache.cayenne.util? Will it be confusing

Re: svn commit: r1358360 - in /cayenne/main/trunk: framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/ framework/cayenne-tools/src/main/java/org/apache/cayenne/tools/ modeler

2012-07-12 Thread John Huss
I'm getting a build failure on trunk due to this commit because a constructor removed from DbGenerator is still referenced by: *maven-cayenne-plugin*/src/main/java/org/apache/cayenne/tools/* DbGeneratorMojo*.java:[156,36] John On Fri, Jul 6, 2012 at 2:13 PM, aadamc...@apache.org wrote:

Re: [jira] [Created] (CAY-1724) Add 'Property' class for easier and better Expression creation

2012-08-08 Thread John Huss
On Wed, Jul 11, 2012 at 3:04 AM, Andrus Adamchik and...@objectstyle.org wrote: +1. I saw it used on one project and it was a nice concept. Andrus On Jul 11, 2012, at 7:30 AM, John Huss (JIRA) wrote: John Huss created CAY-1724: -- Summary: Add

Re: [jira] [Created] (CAY-1724) Add 'Property' class for easier and better Expression creation

2012-08-08 Thread John Huss
On Wed, Aug 8, 2012 at 7:55 PM, Aristedes Maniatis a...@maniatis.org wrote: On 9/08/12 4:52am, John Huss wrote: On Wed, Aug 8, 2012 at 12:34 PM, Andrus Adamchik and...@objectstyle.org wrote: I am now experimenting with the new class generation too. Since Property is simply a singleton

Re: [jira] [Created] (CAY-1724) Add 'Property' class for easier and better Expression creation

2012-08-08 Thread John Huss
such things. And is this change really going to change what the generator does? Probably not. It's only going to change the default template. The old template would still work, wouldn't it? On Wed, Aug 8, 2012 at 2:52 PM, John Huss johnth...@gmail.com wrote: On Wed, Aug 8, 2012 at 12:34

Re: ROP, server-side state and session fixation problem

2012-09-13 Thread John Huss
My ROP app unfortunately got canned, but I had created a custom login message (along with some others) that contained the username and password. If correct if would store the User object in the session and then check for it on subsequent requests. There is quite a bit to be done to properly

Re: [jira] [Closed] (CAY-1741) serializable DataObjectBaseProperty

2012-10-03 Thread John Huss
Are there unit tests for this - serialization? Without tests, this is almost certain to be broken again in the future. On Wed, Oct 3, 2012 at 8:56 AM, Tore Halset (JIRA) j...@apache.org wrote: [

Re: Moving merge package to cayenne-tools in 3.2?

2012-11-10 Thread John Huss
The migrations classes in the sandbox that I wrote use the merge package at runtime to perform migrations at startup time. John On Saturday, November 10, 2012, Andrus Adamchik wrote: I wonder we should move merge package to cayenne-tools from cayenne-server in 3.2. To me schema manipulation

Re: [jira] [Updated] (CAY-1294) Generify query

2012-12-10 Thread John Huss
performQuery(Select T query) Then we can reuse the same ObjectContext method for other queries we might invent. Andrus On Dec 10, 2012, at 9:05 AM, John Huss (JIRA) j...@apache.org wrote: [ https://issues.apache.org/jira/browse/CAY-1294?page

Re: [jira] [Updated] (CAY-1294) Generify query

2012-12-11 Thread John Huss
That's what I was thinking too this morning. On Tue, Dec 11, 2012 at 10:58 AM, Andrus Adamchik and...@objectstyle.orgwrote: Maybe to resolve it we call the new method something else? E.g.: ListT select(Select T query) On Dec 10, 2012, at 6:54 PM, John Huss johnth...@gmail.com wrote

Re: [jira] [Updated] (CAY-1294) Generify query

2012-12-11 Thread John Huss
You would have to limit the bound on SelectQuery as well, which isn't really ok. What advantage does the lower bound give you anyway? The long term solution would be to provide new separate SelectT implementations (not SelectQuery) for the different result types. On Tue, Dec 11, 2012 at 4:20

Re: cayenne.adapter.[domain].[node] property

2012-12-13 Thread John Huss
Thanks, that helps. One question below. I believe this property was removed a good while back although it was present in 3.1 earlier: cayenne.adapter.[domain].[node] property Why was it removed? Can we put it back? You can implement your own DbAdapterFactory that takes adapter name from

Re: [jira] [Updated] (CAY-1294) Generify query

2012-12-13 Thread John Huss
and...@objectstyle.orgwrote: Maybe to resolve it we call the new method something else? E.g.: ListT select(Select T query) On Dec 10, 2012, at 6:54 PM, John Huss johnth...@gmail.com wrote: The interface type is not sufficient to disambiguate the overloading. If you overload it this way

Re: cayenne.adapter.[domain].[node] property

2012-12-15 Thread John Huss
My problem with AutoAdapter is that is causes a connection to be opened immediately whereas a hard coded adapter does not. Does it have to do that? It shouldn't. Could you provide a stack trace of the call that starts the connection? Maybe there's something preceding AutoAdapter

Re: Removing Eclipse files from maven modules

2012-12-15 Thread John Huss
I think we should add the eclipse files to .gitignore. They are getting in the way now. Thoughts? On Fri, Sep 14, 2012 at 8:37 PM, Andrus Adamchik and...@objectstyle.orgwrote: Done (see CAY-1740). If you already have Cayenne projects in Eclipse, you should first delete them from workspace

CAY-1626 Add JodaTime DateTime support

2012-12-15 Thread John Huss
Any thoughts on supporting joda time? Would this be better if placed a third party jar to avoid adding a new dependency? Or is it something you're interested in adding to the core? https://issues.apache.org/jira/browse/CAY-1626 Thanks, John

Re: [jira] [Updated] (CAY-1294) Generify query

2012-12-18 Thread John Huss
the beginning. And it can even extend Query (?). Sorry, I omitted the public keyword in the pseudo-code of the original message. Andrus On Dec 14, 2012, at 7:37 AM, John Huss johnth...@gmail.com wrote: The problem with this is that SelectT is an empty interface, and because ObjectContext

Re: CAY-1626 Add JodaTime DateTime support

2012-12-18 Thread John Huss
a...@maniatis.org wrote: On 16/12/12 10:06am, John Huss wrote: Any thoughts on supporting joda time? Would this be better if placed a third party jar to avoid adding a new dependency? Or is it something you're interested in adding to the core? https://issues.apache.org/jira/browse/CAY-1626

Re: cayenne.adapter.[domain].[node] property

2012-12-21 Thread John Huss
that delegating? On Mon, Dec 17, 2012 at 12:45 AM, Andrus Adamchik and...@objectstyle.orgwrote: On Dec 16, 2012, at 1:48 AM, John Huss johnth...@gmail.com wrote: My problem with AutoAdapter is that is causes a connection to be opened immediately whereas a hard coded adapter does not. Does

Re: basic tutorial

2012-12-21 Thread John Huss
This message should be on the user mailing list, not the dev list, so please reply there. Cayenne is not primarily intended to be used that way, so there is no tutorial. It is possible to do, but there's not really a good reason to for a beginner. Using the modeler prevents from having to know

Re: cayenne.adapter.[domain].[node] property

2012-12-24 Thread John Huss
, at 12:45 AM, John Huss johnth...@gmail.comjavascript:; wrote: Is it necessary to open a connection to the DB to get the metdata in order to detect the adapter? Couldn't you just look at the jdbc url scheme? For migrations I'd like to allow for DB specific sql to be put in separate files

Re: svn commit: r1425901 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/Cayenne.java

2012-12-26 Thread John Huss
Should be 3.2 unless you're back porting it. On Wednesday, December 26, 2012, wrote: Author: aadamchik Date: Wed Dec 26 13:31:44 2012 New Revision: 1425901 URL: http://svn.apache.org/viewvc?rev=1425901view=rev Log: API version tag Modified:

Re: [VOTE] 3.1B2

2013-02-17 Thread John Huss
+1 Looks good to me. On Sun, Feb 17, 2013 at 7:49 AM, Andrus Adamchik and...@objectstyle.orgwrote: Resuming the vote.. I investigated the issue with the mapping and found it to be a user mapping error. There's room for validation improvement there, but no Cayenne bug as such. I'll wait

Re: CGen includeEntities attribute

2013-03-14 Thread John Huss
, 2013 at 12:49 PM, John Huss johnth...@gmail.com wrote: I've been using CGen for a bit and one confusing aspect of it to me was the way you specific which entities to include for generation. I expected a simple comma-separated list, but it requires a regular expression. You can sort

Re: CGen includeEntities attribute

2013-03-18 Thread John Huss
more than one entity? Andrus On Mar 14, 2013, at 7:49 PM, John Huss johnth...@gmail.com wrote: I've been using CGen for a bit and one confusing aspect of it to me was the way you specific which entities to include for generation. I expected a simple comma-separated list, but it requires

Re: CGen includeEntities attribute

2013-03-19 Thread John Huss
) to include from template generation. By default all DataMap entities are included. So where is it missing? (and we can update 3.0 docs as well) Andrus On Mar 19, 2013, at 12:15 AM, John Huss johnth...@gmail.com wrote: Well, surprise, it already works this way. I could have sworn I tried

Re: upcoming 3.2M1 release vote

2013-04-15 Thread John Huss
Sounds good to me. On Sun, Apr 14, 2013 at 1:51 PM, Andrus Adamchik and...@objectstyle.orgwrote: Thinking of starting 3.2M1 vote soon. Want generified SelectQuery available to everyone ASAP. Comments? A.

Problem with postLoad callback and faulting

2013-05-22 Thread John Huss
I've tracked down a problem. The situation is I have a postLoad callback on an entity that calls a setter on the object, for example: public void publicCallback(Object entity) { Artist a = (Artist)entity; a.setArtistName(Changed); } This works if you fetch the object directly

Quick build/test

2013-05-22 Thread John Huss
I'm not a maven guy, so forgive me. Is there a way to tell maven to just run the build and tests for cayenne-jdk1.5-unpublished and skip everything else (in particular the docs generation)? Thanks, John

Re: Problem with postLoad callback and faulting

2013-05-29 Thread John Huss
? A. On May 22, 2013, at 5:57 PM, John Huss johnth...@gmail.com javascript:; wrote: I've tracked down a problem. The situation is I have a postLoad callback on an entity that calls a setter on the object, for example: public void publicCallback(Object entity) { Artist a = (Artist)entity

Re: 3.2M1?

2013-06-17 Thread John Huss
Sounds great. On Monday, June 17, 2013, Andrus Adamchik wrote: We have quite a few goodies on trunk that just need to be released to the users ASAP. I don't think I have a single production app that is not based on one or another nightly build anymore :) Of course there are many good things

Re: [jira] [Updated] (CAY-1834) Exception: ToManyList cannot be cast to DataObject

2013-06-18 Thread John Huss
For what it's worth, I've had this commented out for quite some time now and have been running it in production. It was necessary because my entity classes are subclasses of PersistentObject rather than CayenneDataObject and they don't have any place to store the generated runtimeRelationshipX

Re: [jira] [Created] (CAY-1840) Conditionally log slow / long-running queries

2013-06-26 Thread John Huss
On Wed, Jun 26, 2013 at 10:35 AM, Mike Kienenberger mkien...@gmail.comwrote: On Wed, Jun 26, 2013 at 10:40 AM, John Huss (JIRA) j...@apache.org wrote: Summary: Conditionally log slow / long-running queries URL: https://issues.apache.org/jira/browse/CAY-1840

Re: [VOTE] 3.2M1 - take 2

2013-07-09 Thread John Huss
+1 from me. Looks good. Sorry about the missing licenses in my files. I agree about addressing these things that were brought up for the next milestone: 1. RELEASE-NOTES.txt seems to have lost all history before 3.2M1 2. UPGRADE.txt has nothing to suggest for 3.2 On Sun, Jul 7, 2013 at

Re: REST framework on to of Cayenne [Was [jira] [Commented] (CAY-1847) Make ConverterFactory extensible and injected via DI]

2013-07-11 Thread John Huss
, Andrus Adamchik and...@objectstyle.orgwrote: [taking to dev] On Jul 11, 2013, at 10:21 PM, John Huss (JIRA) j...@apache.org wrote: Support in ConverterFactory is for integration with Jersey where I am using PropertyUtils.setProperty to convert from strings like 2013-05-01 00:00:00.000

Re: [VOTE] 3.2M1 - take 2

2013-07-13 Thread John Huss
Both worked for me as well. On Saturday, July 13, 2013, Andrus Adamchik wrote: This is very odd. I just downloaded a fresh copy via FireFox, and it opens just fine on my laptop (after expected warnings about opening downloaded software for the first time). Also both from mounted image and

Re: [jira] [Updated] (CAY-1840) Conditionally log slow / long-running queries

2013-07-22 Thread John Huss
Andrus, can you take a look at the updated patch? Thanks. On Monday, July 8, 2013, John Huss (JIRA) wrote: [ https://issues.apache.org/jira/browse/CAY-1840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel] John Huss updated CAY-1840

Re: [jira] [Updated] (CAY-1840) Conditionally log slow / long-running queries

2013-07-22 Thread John Huss
will, thanks! On Jul 22, 2013, at 4:23 PM, John Huss johnth...@gmail.com wrote: Andrus, can you take a look at the updated patch? Thanks. On Monday, July 8, 2013, John Huss (JIRA) wrote: [ https://issues.apache.org/jira/browse/CAY-1840?page

Re: Two datanodes

2013-07-26 Thread John Huss
You can have multiple DataMaps and DataNodes within the same cayenne project (.xml file). And the DataMaps can have relationships that cross from one to the other and that reference different DataNodes. You don't need to put these in separate files (DataDomains) and you shouldn't unless you

Fwd: Child Contexts

2013-09-05 Thread John Huss
is a channel of the child. The cast above is possible since DataContext implements DataChannel. Andrus On Sep 5, 2013, at 5:04 PM, John Huss johnth...@gmail.com wrote: You aren't creating the child context correctly. I don't recall the proper way to do it in 3.1+ On Thu, Sep 5, 2013 at 8

API for changing to-many relationships

2013-10-04 Thread John Huss
I'm curious about the API for changing to-many relationships. It looks like for CayenneDataObject subclasses List (and probably Map) relationships only support changes made using the addToManyTarget, removeToManyTarget, and setToManyTarget methods -- with the exception that add and addAll seem to

PropertyUtils.getProperty handling of nulls in intermediate / nested paths

2013-10-09 Thread John Huss
Currently if you call PropertyUtils.getProperty with a chain of properties, like painting.name and a part of the chain is null you get UnresolvablePathException(Null value in the middle of the path…). I believe it was done this way to match org.apache.commons.beanutils.BeanUtils.getNestedProperty

Re: [jira] [Commented] (CAY-1881) CayenneModeler (Mac version) doesn't work with Java 7

2013-11-08 Thread John Huss
For a tool intended for use by Java developers I think including the JRE is unnecessary. Although for consumer applications it is handy. On Fri, Nov 8, 2013 at 2:28 PM, Michael Gentry mgen...@masslight.netwrote: I noticed the bundling of the JRE, too. Pros and cons to that, I suppose. I

Re: To-Many Warning?

2013-11-14 Thread John Huss
Can you also check that the Fk and Pk columns are the same type? MySQL requires this and if you mismatch Integer and BigInt it doesn't work. John On Thursday, November 14, 2013, Michael Gentry wrote: I'll create a JIRA for it later. I think it should also include a warning to check for

Re: ServerRuntime Naming

2013-12-16 Thread John Huss
It was already renamed to newContext in 3.2 several months ago. On Mon, Dec 16, 2013 at 11:41 AM, Mike Kienenberger mkien...@gmail.comwrote: I think I was thrown off by this originally as well. On Mon, Dec 16, 2013 at 12:40 PM, Michael Gentry mgen...@masslight.net wrote: I was just

Re: [jira] [Commented] (CAY-1864) Process threads waiting for an available DB connection in the order they came in

2013-12-20 Thread John Huss
On Fri, Dec 20, 2013 at 12:23 AM, Andrus Adamchik and...@objectstyle.orgwrote: (taking this to dev) On Dec 20, 2013, at 1:46 AM, John Huss (JIRA) j...@apache.org wrote: John Huss commented on CAY-1864: I've got tomcat-jdbc in my project now, so I'm

Re: [jira] [Commented] (CAY-1864) Process threads waiting for an available DB connection in the order they came in

2013-12-20 Thread John Huss
is configured via properties. Andrus [1] https://github.com/andrus/jetty-launcher On Dec 20, 2013, at 6:48 PM, John Huss johnth...@gmail.com wrote: On Fri, Dec 20, 2013 at 12:23 AM, Andrus Adamchik and...@objectstyle.orgwrote: (taking this to dev) On Dec 20, 2013, at 1:46 AM, John Huss

Re: Build failed in Jenkins: Cayenne-trunk » derby,JDK 1.6 (latest),Ubuntu #980

2013-12-20 Thread John Huss
I could use some guidance here. I'm needing to distinguish between DbAdapters that support native sequence generation and those that use the AUTO_PK_SUPPORT table. I see DbAdapter.supportsGeneratedKeys, but this is not true for Oracle, Postgres, etc, so I'm wondering if this is a reliable

Re: [VOTE] 3.1RC1

2014-02-11 Thread John Huss
+1 Looks good to me. I looked at the Mac and Windows assemblies. For the mac one - I had to use the legacy modeler although I have jdk 7 installed (but it is not the default). I'm on OS X 10.8.5. It would be nice to add something to the readme to explain the which systems the two modelers are

Re: Jenkins

2014-03-17 Thread John Huss
I agree. On Mon, Mar 17, 2014 at 9:29 AM, Andrus Adamchik and...@objectstyle.orgwrote: CI randomness is driving me crazy.. especially since I suspect this is our unit test code to blame. A.

Java 8

2014-03-21 Thread John Huss
Still Java 8 just came out I decided to try and compile Cayenne using it (oracle version). The code compiled without a problem. There were a bunch of javadoc issues that caused that part to fail so I fixed all those except this one (since I'm not sure what to change it to): [ERROR]

Re: Java 8

2014-03-21 Thread John Huss
for Java 6 speeds up the process of getting to Java 8 then it might be worth it. Java 8 also includes the new Date Time API (JSR-310), which should probably be supported in Cayenne eventually. It's very similar to Joda from what I hear. On Mar 21, 2014, at 5:38 PM, John Huss johnth

Re: cayenne-crypto

2014-04-22 Thread John Huss
I'm giving this a try. Looks like you have to specify the AES algorithm when creating the store, so the command is like this: keytool -genseckey -keystore /tmp/ks1.jceks -storetype JCEKS *-keyalg AES -keysize 256* -alias mykey On Fri, Apr 4, 2014 at 7:21 AM, Andrus Adamchik

Re: cayenne-crypto

2014-07-17 Thread John Huss
be overridden to add modules to the set of modules declared in the web.xml? John On Tue, Apr 22, 2014 at 5:07 PM, John Huss johnth...@gmail.com wrote: I'm giving this a try. Looks like you have to specify the AES algorithm when creating the store, so the command is like this: keytool

Re: cayenne-crypto

2014-07-17 Thread John Huss
, Jul 17, 2014 at 1:42 PM, John Huss johnth...@gmail.com wrote: In cases where CayenneFilter is being used, the ServerRuntime is created internally by Cayenne. How to I add in the crypto module? Module crypto = new CryptoModuleBuilder().keyStore(keyFile, keyPassword.toCharArray(), alias).build

Commit email messages

2014-08-07 Thread John Huss
Since the git migration I don't get commit emails any more. Is there a way to get that working again? Thanks, John

Re: Copy/Clone Mutable Objects?

2014-09-06 Thread John Huss
My thoughts are: don't use Date. On Sep 6, 2014 4:58 PM, Michael Gentry mgen...@masslight.net wrote: Should Cayenne copy/clone mutable objects, such as Date? For example, if I modify a date after setting it in a Cayenne object (person), it modifies the value stored by Cayenne:

Re: Copy/Clone Mutable Objects?

2014-09-07 Thread John Huss
Sure, use Joda time. On Sep 6, 2014 8:15 PM, Michael Gentry mgen...@masslight.net wrote: Is that a realistic option? On Sat, Sep 6, 2014 at 6:55 PM, John Huss johnth...@gmail.com wrote: My thoughts are: don't use Date. On Sep 6, 2014 4:58 PM, Michael Gentry mgen...@masslight.net wrote

Re: Copy/Clone Mutable Objects?

2014-09-08 Thread John Huss
and Time if Java 8 is an option: http://www.oracle.com/technetwork/articles/java/jf14-date-time-2125367.html Andrus On Sep 8, 2014, at 4:17 AM, John Huss johnth...@gmail.com wrote: Sure, use Joda time. On Sep 6, 2014 8:15 PM, Michael Gentry mgen...@masslight.net wrote

Re: [VOTE] 3.1 final

2014-09-25 Thread John Huss
The mac and generic binaries look good. The source builds. Tests passed on Oracle java 1.6. But I got failures on Oracle Java 1.8 (on mac). I tried 4 different database vendors and the tests failed each time. There were a few failures, but the consistent one was this:

Re: [VOTE] 3.1 final

2014-09-25 Thread John Huss
The mac and generic binaries look good. The source builds. Tests passed on Oracle java 1.6. But I got failures on Oracle Java 1.8 (on mac). I tried 4 different database vendors and the tests failed each time. There were a few failures, but the consistent one was this: expected 33 but was 34

Re: 3.2 - 4

2014-10-01 Thread John Huss
I agreed with sticking with 3.2. Since there isn't a major architecture change 3.2 seems appropriate. The smaller version change makes it seem less scary to people considering upgrading. On Wed, Oct 1, 2014 at 7:18 AM, Mike Kienenberger mkien...@gmail.com wrote: After this amount of time, I

Re: Chainable SelectQuery

2014-10-07 Thread John Huss
Hmm... I have a lot to say, so I might ramble a bit. 1) Static imports I'll never been a big user of static imports, largely because the tooling (Eclipse) doesn't support them well. Everytime I've used a static import (which is really only in JUnit) I've wanted to import all the members: import

Re: Chainable SelectQuery

2014-10-10 Thread John Huss
I could go along with calling this 4.0 On Thu, Oct 9, 2014 at 5:15 PM, Michael Gentry mgen...@masslight.net wrote: I think you are announcing Cayenne 4.0 ... :-) On Thu, Oct 9, 2014 at 5:37 PM, Andrus Adamchik and...@objectstyle.org wrote: Based on this discussion I am leaning towards

Re: Java 1.7 for 4.0 .. again

2014-10-28 Thread John Huss
I'm in favor of moving to 1.7 On Tue, Oct 28, 2014 at 2:28 AM, Andrus Adamchik and...@objectstyle.org wrote: On Oct 27, 2014, at 10:11 AM, Andrus Adamchik and...@objectstyle.org wrote: While I'd love to start using diamond syntax and try-with-resources in our own code Also 1.7

Re: Chainable SelectQuery

2014-11-17 Thread John Huss
I definitely do not want is, especially since the the negated operation has to be consistent - eq and ne works. I like where. I would stick with select since we have SQLSelect and ObjectSelect. Unless we have good alternatives names for those too. On Mon, Nov 17, 2014 at 8:42 AM, Andrus

Re: new fluent API

2015-04-15 Thread John Huss
I'm not on the very latest, but unless it changed and() is a var-args method, so you can pass all your expressions in a comma separated list for even better syntax. On Wed, Apr 15, 2015 at 4:08 AM Aristedes Maniatis a...@maniatis.org wrote: On 15/04/2015 6:57pm, Andrus Adamchik wrote: From my

Re: New features in Select API

2015-04-08 Thread John Huss
On Tue, Apr 7, 2015 at 8:29 PM Aristedes Maniatis a...@maniatis.org wrote: On 7/04/2015 9:13pm, Savva Kolbachev wrote: Hi All! It's a pleasure for me to introduce to you some new features in Select API. I'd be thrilled if you could have a look and give us your feedback. Nice work.

Re: [jira] [Commented] (CAY-1996) Adding a prefetch to a SelectQuery via string path doesn't work

2015-04-02 Thread John Huss
Shouldn't it throw an exception with a descriptive message? Silently ignoring it isn't especially helpful. On Thu, Apr 2, 2015 at 8:27 AM Andrus Adamchik (JIRA) j...@apache.org wrote: [ https://issues.apache.org/jira/browse/CAY-1996?page=com.

New connection pool comment

2015-06-23 Thread John Huss
I'm working on integrating my apps with the latest changes and I noticed that in the new connection pool there isn't a special exception thrown when the pool is exhausted (too busy). It was handy to be able to identify that situation. It's in UnmanagedPoolingDataSource line 326: throw new

Case-sensitivity problems with columns (DbAttributes)

2015-06-12 Thread John Huss
I've run into problems a few times caused by case-mismatch issues with columns (DbAttributes). The primary one being when I have SQLTemplate queries that return actual DataObjects. If the DbAttribute is declared with mixed case (myTablePK) then my query just returns a list of nulls because it

Re: Case-sensitivity problems with columns (DbAttributes)

2015-06-15 Thread John Huss
to be defined in mixed case because they are generated into java source as the PK_COLUMN constant and mixed case is necessary for a good name to be generated. Andrus On Jun 13, 2015, at 12:13 AM, John Huss johnth...@gmail.com wrote: I've run into problems a few times caused by case

  1   2   3   >