Re: Java 8

2017-07-28 Thread Savva Kolbachev
th transition to Java 9 that will be ready > > hopefully soon and optimization in Cayenne internals. > > > > Any thoughts or concerns? > > > > [1] https://lists.apache.org/thread.html/35fd12dafc30eac3b3390c5ae0ba7b > da00185e085af669e4dc5c6fac@%3Cdev.cayenne.apache.org%3E > > > > -- > > Best regards, > > Nikita Timofeev > > -- Best Regards, Savva Kolbachev

Re: Compiling from source

2016-09-27 Thread Savva Kolbachev
.M4-SNAPSHOT for the first time and without testing, they might not have cayenne-server:jar:tests:4.0.M4-SNAPSHOT in the local .m2 repo. On Wed, Sep 28, 2016 at 8:25 AM, Andrus Adamchik wrote: > > > On Sep 27, 2016, at 11:34 PM, Savva Kolbachev > wrote: > > > > So, your .m2

Re: Compiling from source

2016-09-27 Thread Savva Kolbachev
Oh, I've tried again, but this time with -DskipTests instead of -Dmaven.test.skip=true. And it works fine. So, just try to build with "mvn clean install -DskipTests". I think we should update the documentation. On Tue, Sep 27, 2016 at 11:34 PM, Savva Kolbachev wrote: > I

Re: Compiling from source

2016-09-27 Thread Savva Kolbachev
either (but fails for a different reason). Attached. > > On Tue, Sep 27, 2016 at 12:02 PM, Savva Kolbachev > wrote: > >> Hi Lon, >> >> From your output it looks like you just have test failures. Do you build >> from trunk? >> Could you also provide build

Re: Compiling from source

2016-09-27 Thread Savva Kolbachev
; with >> > > > tests) what am I missing? >> > > > >> > > > The above command produces: >> > > > >> > > > [ERROR] Failed to execute goal on project cayenne-client: Could not >> > > resolve >> > > > dependencies for project >> > > > org.apache.cayenne:cayenne-client:jar:4.0.M4-SNAPSHOT: Could not >> find >> > > > artifact org.apache.cayenne:cayenne-server:jar:tests:4.0.M4-SNAPSHOT >> -> >> > > > [Help 1] >> > > > >> > > > Thanks, >> > > > >> > > > Lon >> > > >> > > >> > >> > > -- Best Regards, Savva Kolbachev

Re: Running an ROP server outside Maven

2016-09-26 Thread Savva Kolbachev
e here... can someone provide a simple > example of how to run an ROP server instance outside of running the Cayenne > Maven task that does the same? Any help is much appreciated. > > > -Adam > -- Best Regards, Savva Kolbachev

Re: auto PK generation in Cayenne 4 + PostgreSQL combination?

2016-08-11 Thread Savva Kolbachev
instead of just the new PK value. > > > > > > > > > > > > > > > > > > > > > > > > mrg > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Thu, Jul 28, 2016 at 9:45 AM, Michael Gentry < > > > > > > > > blackn...@gmail.com > > > > > > > > > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > >> The PostgreSQL documentation says: > > > > > > > > > > > >> > > > > > > > > > > > >> CREATE TABLE tablename ( > > > > > > > > > > > >>colname SERIAL > > > > > > > > > > > >> ); > > > > > > > > > > > >> > > > > > > > > > > > >> is equivalent to specifying: > > > > > > > > > > > >> > > > > > > > > > > > >> CREATE SEQUENCE tablename_colname_seq; > > > > > > > > > > > >> CREATE TABLE tablename ( > > > > > > > > > > > >>colname integer NOT NULL DEFAULT > > > > > > > > nextval('tablename_colname_seq') > > > > > > > > > > > >> ); > > > > > > > > > > > >> ALTER SEQUENCE tablename_colname_seq OWNED BY > > > > > > tablename.colname; > > > > > > > > > > > >> > > > > > > > > > > > >> > > > > > > > > > > > >> We'd have to see if the JDBC driver returns the > > sequence > > > > > value > > > > > > > > > > generated > > > > > > > > > > > >> for the serial column. > > > > > > > > > > > >> > > > > > > > > > > > >> mrg > > > > > > > > > > > >> > > > > > > > > > > > >> > > > > > > > > > > > >> > > > > > > > > > > > >> On Thu, Jul 28, 2016 at 9:10 AM, Andrus Adamchik < > > > > > > > > > > > and...@objectstyle.org> > > > > > > > > > > > >> wrote: > > > > > > > > > > > >> > > > > > > > > > > > >>> Back in the day PG driver did not support > > > autoincremented > > > > > > > values > > > > > > > > at > > > > > > > > > > the > > > > > > > > > > > >>> JDBC level. So we had to always revert to > sequences. > > > > > > > > > > > >>> > > > > > > > > > > > >>> I'd like to run a test to see if it does now. If > the > > > test > > > > > is > > > > > > > > > > > successful, > > > > > > > > > > > >>> we can reconfigure Cayenne PostgresAdapter to > enable > > > > > > > > aoto-increment > > > > > > > > > > > >>> strategy. Will keep the list posted. > > > > > > > > > > > >>> > > > > > > > > > > > >>> Andrus > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > > >>>> On Jul 28, 2016, at 12:48 PM, Harunobu Oyama < > > > > > > h...@telensa.com> > > > > > > > > > > wrote: > > > > > > > > > > > >>>> > > > > > > > > > > > >>>> Hi, > > > > > > > > > > > >>>> > > > > > > > > > > > >>>> > > > > > > > > > > > >>>> What is the proper way to setup auto PK generation > > > when > > > > > > > Cayenne > > > > > > > > 4 > > > > > > > > > + > > > > > > > > > > > >>>> PostgreSQL are in use? > > > > > > > > > > > >>>> > > > > > > > > > > > >>>> Suppose I have a simple table like this. > > > > > > > > > > > >>>> > > > > > > > > > > > >>>> create table "asset" ( > > > > > > > > > > > >>>> "asset_id" bigserial not null > > > > > > > > > > > >>>> , "name" character varying not null > > > > > > > > > > > >>>> , constraint "asset_PKC" primary key ("asset_id") > > > > > > > > > > > >>>> ) ; > > > > > > > > > > > >>>> > > > > > > > > > > > >>>> No matter how I configure the PK generation > > settings, > > > it > > > > > > seems > > > > > > > > > > Cayenne > > > > > > > > > > > >>>> runtime > > > > > > > > > > > >>>> requires sequence named "pk_asset". > > > > > > > > > > > >>>> > > > > > > > > > > > >>>> Ideally we would like to automate the > table-sequence > > > > > > > combination > > > > > > > > > by > > > > > > > > > > > >>> using > > > > > > > > > > > >>>> serial/bigserial. > > > > > > > > > > > >>>> > > > > > > > > > > > >>>> How can I tell Cayenne stop requiring "pk_asset"? > > > > > > > > > > > >>>> > > > > > > > > > > > >>>> > > > > > > > > > > > >>>> thank you, > > > > > > > > > > > >>>> nobu > > > > > > > > > > > >>> > > > > > > > > > > > >>> > > > > > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- Best Regards, Savva Kolbachev

Re: Extended class issues

2016-08-05 Thread Savva Kolbachev
ing currentPropertyDiff and currentArcDiff. Looks like in this case performance will be slightly better. 2016-08-03 21:24 GMT+03:00 Savva Kolbachev : > Hi Dougan, > > I'm able to reproduce the problem you provided. I'll come back to you > after some investigation. > > 2016

Re: Extended class issues

2016-08-03 Thread Savva Kolbachev
t; org.apache.cayenne.access.DataDomainFlushAction.runQueries(DataDomainFlushAction.java:233) > >> at > org.apache.cayenne.access.DataDomainFlushAction.flush(DataDomainFlushAction.java:154) > >> at > org.apache.cayenne.access.DataDomain.onSyncFlush(DataDomain.java:693) > >> at > org.apache.cayenne.access.DataDomain$2.transform(DataDomain.java:659) > >> at > org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:720) > >> at > org.apache.cayenne.access.DataDomain.onSyncNoFilters(DataDomain.java:655) > >> at > org.apache.cayenne.access.DataDomain$DataDomainSyncFilterChain.onSync(DataDomain.java:863) > >> at org.apache.cayenne.access.DataDomain.onSync(DataDomain.java:636) > >> at > org.apache.cayenne.access.DataContext.flushToParent(DataContext.java:727) > >> at > org.apache.cayenne.access.DataContext.commitChanges(DataContext.java:676) > >> > >> Thanks, > >> Doug > >> > > > > -- Best Regards, Savva Kolbachev

[ANN] Cayenne 3.1.1 maintenance release

2016-05-16 Thread Savva Kolbachev
e new stable release of Cayenne and don't forget to spread the word of 3.1.1 release via Facebook, Twitter, blogs etc. ! ------- Savva Kolbachev Apache Cayenne ORM: http://cayenne.apache.org/ Twitter: http://twitter.com/ApacheCayenne

[ANN] Cayenne 4.0 M3 release

2016-02-16 Thread Savva Kolbachev
Read on the details and download Cayenne here: https://cayenne.apache.org/2016/02/cayenne-40m3-released.html https://cayenne.apache.org/download.html Enjoy the new Cayenne and spread the word of 4.0 M3 via Facebook, Twitter, blogs etc. ! --- Savva Kolbachev Apache Cayenne ORM:

Re: Changing database connection programmatically

2016-01-22 Thread Savva Kolbachev
e and switch my model’s connection to it for the > purpose of testing. > > What’s the preferred way to switch the connection programmatically? > > Cheers, > - hugi -- Thanks and Regards Savva Kolbachev

Re: Migrate Schema

2016-01-12 Thread Savva Kolbachev
Hi Tony, I've tried to reproduce your problem, but failed. Both (reverse engineering and migrate schema) work great for me. I've used Postgres docker image 9.3.10 [1] with 9.3-1103.jdbc3 driver. I'll try to use your db version on my Mac and will get back to you soon. [1] https://hub.docker.com/_

Re: Handling Sql Server datetimeoffset column type

2015-10-29 Thread Savva Kolbachev
Hi Vincent, I've tried to reproduce your issue, but it works fine for me. I think you should check your JDBC driver. I use the following: com.microsoft.sqlserver sqljdbc4 4.0 2015-10-01 12:16 GMT+03:00 Andrus Adamchik : > Never used datetimeo

Re: CayenneModeler not generating classes

2015-10-13 Thread Savva Kolbachev
Sorry, it was my mistake. I was confused by http://people.apache.org/~henning/velocity/html/ch06.html It really works with "and", "or" for me, 'org.apache.cayenne.exp.Property' is created and all the tests pass. Anyway I will apply Mike's fix. 2015-10-13 8:26 GMT+03:00 Dipesh Jain : > Hi Mike,

Re: Reengineering a Postgres DB schema not working in Modeler?

2015-10-08 Thread Savva Kolbachev
rectories are not executable, are there instructions > somewhere on how to build/assemble a functional modeler? > > Cheers, > - hugi > > > > > On 8. okt. 2015, at 11:53, Savva Kolbachev > wrote: > > > > Hi Hugi, > > > > Yeah, it is a bug in 4.0.M

Re: Reengineering a Postgres DB schema not working in Modeler?

2015-10-08 Thread Savva Kolbachev
Hi Hugi, Yeah, it is a bug in 4.0.M2. It has been fixed since 4.0.M3. Look CAY-1993 , CAY-1994 Best regards, Savva 2015-10-08 13:32 GMT+03:00 Hugi Thordarson : > Hi all. > I’m attempting to reengine

Re: CayenneModeler not generating classes

2015-10-06 Thread Savva Kolbachev
Yeah, sure. I used the latest repository from github, Java 1.8.0_25, OS X El Capitan. 2015-10-06 9:14 GMT+03:00 Dipesh Jain : > Hi Savva, > > In which environment you are working? Did you build latest repository > to reproduce > my error ? > > On Mon, Oct 5, 2015 at 11:06 AM, Dipesh Jain wrote:

Re: CayenneModeler not generating classes

2015-10-05 Thread Savva Kolbachev
Hi, Dipesh. I've tried to reproduce your error, but it works correctly on my environment. 2015-10-05 8:36 GMT+03:00 Dipesh Jain : > I am using JAVA 8 and Here is my > > *cayenne-IV.xml* > > > > > > factory="org.apache.cayenne.configuration.server.DBCPDataSourceFactory" > parameters="mastersd

Re: Java 8 Date/Time API and Cayenne

2015-08-07 Thread Savva Kolbachev
rs, > - hugi > > // Hugi Thordarson > // http://www.loftfar.is/ <http://www.loftfar.is/> > // s. 895-6688 > > > > > On 6. ágú. 2015, at 08:58, Savva Kolbachev > wrote: > > > > Hi Hugi, > > > > Cayenne already has a Java 8 module, which includ

Re: Java 8 Date/Time API and Cayenne

2015-08-06 Thread Savva Kolbachev
Hi Hugi, Cayenne already has a Java 8 module, which includes all necessary extended types for the new Java 8 Date/Time API. So feel free to use it. 2015-08-06 11:17 GMT+03:00 Hugi Thordarson : > Hi all. > > I’m starting new project and I’m pondering using the new Java 8 Date/Time > API’s in the

Re: 4.0M2 Modeler Migration Tool Empty Change List

2015-03-31 Thread Savva Kolbachev
Hi Peter! Thank you for your bug report. We've resolved the issue. So now you can download and build the latest Cayenne version. In short: clone a repository from https://github.com/apache/cayenne and build it via 'mvn clean install -Passembly,windows' for your Windows PC. If you need more infor

Re: [ANN] Cayenne 4.0 M2 released

2015-03-26 Thread Savva Kolbachev
Hi Tony! We've resolved the issue. For more information about it, see CAY-1993 . So now you can download and build the latest Cayenne version. In short: clone a repository from github and build via 'mvn clean insta

Re: [ANN] Cayenne 4.0 M2 released

2015-03-23 Thread Savva Kolbachev
Hi Tony! We've confirmed the issue and have started working on it. I've experienced a problem, with the new modeler. > > I've downloaded the new Cayenne 4.0 M2 on two different mac's one running > jdk 1.8 and the other running 1.7.0_65 and in both instances reverse > engineering didn't work. > > I