Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8827018673 for ; Tue, 13 Oct 2015 13:23:32 +0000 (UTC) Received: (qmail 22584 invoked by uid 500); 13 Oct 2015 13:22:58 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 22559 invoked by uid 500); 13 Oct 2015 13:22:58 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 22548 invoked by uid 99); 13 Oct 2015 13:22:57 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2015 13:22:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7CEF31A20F5 for ; Tue, 13 Oct 2015 13:22:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.001 X-Spam-Level: * X-Spam-Status: No, score=1.001 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Tjt8uNha-BHa for ; Tue, 13 Oct 2015 13:22:51 +0000 (UTC) Received: from us-rs09.objectstyle.com (us-rs09.objectstyle.com [162.242.166.79]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 2D2E742B35 for ; Tue, 13 Oct 2015 13:22:51 +0000 (UTC) Received: (qmail 13528 invoked by uid 509); 13 Oct 2015 13:22:44 -0000 Received: from localhost (HELO ?IPv6:::1?) (127.0.0.1) by us-rs09.objectstyle.com with SMTP; 13 Oct 2015 13:22:44 -0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: CayenneModeler not generating classes From: Andrus Adamchik In-Reply-To: Date: Tue, 13 Oct 2015 09:22:43 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <44B8844E-C96F-403D-8A29-9E3D75234E34@objectstyle.org> References: To: user@cayenne.apache.org X-Mailer: Apple Mail (2.2104) That URL looks like unofficial docs that Henning (one of the committers) = posted on his home page. So yeah, hard to say what's the status of that = (maybe that's something experimental?). I am surprised though that none = of our tests are catching the issue. Anyways, I guess we should be good = now. Andrus=20 > On Oct 13, 2015, at 5:16 AM, Savva Kolbachev = wrote: >=20 > Sorry, it was my mistake. >=20 > 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. >=20 > Anyway I will apply Mike's fix. >=20 > 2015-10-13 8:26 GMT+03:00 Dipesh Jain : >=20 >> Hi Mike, >>=20 >> I tried your solution and its worked. Thanks for the Help. >>=20 >> On Sat, Oct 10, 2015 at 2:52 PM, Dipesh Jain = wrote: >>=20 >>> Hi Mike, As you said velocity version maybe has some problems so I = had >>> changed version from 1.6.4 but the output was same. I also tried = with 1.7 >>> version but I got some errors and project was not build. I have = created a >>> fresh project for example. Here my xml files - = *cayenne-Services.xml* >>> >> name=3D"datamap"/> >> = factory=3D"org.apache.cayenne.configuration.server.DBCPDataSourceFactory" >>> parameters=3D"mastersdbcp2.properties" >>>=20 >> = schema-update-strategy=3D"org.apache.cayenne.access.dbsync.SkipSchemaUpdat= eStrategy" >>>> *datamap.map.xml* = >> version=3D"1.0" encoding=3D"utf-8"?> >> http://cayenne.apache.org/schema/7/modelMap" xmlns:xsi=3D" >>> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D" >>> http://cayenne.apache.org/schema/7/modelMap >>> http://cayenne.apache.org/schema/7/modelMap.xsd" = project-version=3D"7"> >>> = >> name=3D"Person"> >> >> name=3D"Name" type=3D"VARCHAR" length=3D"100"/> >> type=3D"NUMERIC" isPrimaryKey=3D"true" isMandatory=3D"true" = length=3D"5"/> >>> >> className=3D"com.iv.platform.dto.Person" dbEntityName=3D"Person"> >>> >> db-attribute-path=3D"DateofBirth"/> >> type=3D"java.lang.String" db-attribute-path=3D"Name"/> >>> After creating project, DB and Obj entity. As per >> Documentation >>> I have clicked on tools menu to generate classes. On popup dialog = box I >>> have changed nothing just clicked on Generate button, and I got that >> error. >>> My Person file was generated in com.iv.platform.auto package but it = was >>> empty. Hii Andrus, I apologize that I can not provide screenshots, = and as >>> you said >> Looks like Dipesh is using the Modeler for class = generation. >>> Does that mean we can generate classes without Modeler ? and as per = the >>> documentation and comment in generated class in Cayenne 3.1 /** * = Class >>> _PersonTemp was generated by Cayenne. * It is probably a good idea = to >> avoid >>> changing this class manually, * since it may be overwritten next = time >> code >>> is regenerated. * If you need to make any customizations, please use >>> subclass. */ I understood that I have to create classes form = Modeler. Is >>> there any other way or I can generate POJO classes from my end and = use it >>> in Cayenne. -- Thanks and Regards Deepesh Jain >>>=20 >>=20 >>=20 >>=20 >> -- >> Thanks and Regards >> Deepesh Jain >>=20