Re: Using CayenneModeler as standalone tool

2012-04-04 Thread Aristedes Maniatis
Hi Robert If you had any developer time available, you could review the patch here for modeler comments and properties: https://issues.apache.org/jira/browse/CAY-400 This was created by an intern I briefly had at work. The guts of it are done, but a bit of cleaning up is needed before it i

Re: Using CayenneModeler as standalone tool

2012-04-04 Thread Robert Huber @ 7r
Hi Michael I can perfectly understand that EOModel Import is low priority. For us it's the key part as we have quite a few EOModels, the biggest having more than 130 entities with more than 200 relationships (and using comments extensively, which are not supported at the moment in CM, as far as

RE: Track Column level changes in Cayenne

2012-04-04 Thread Simran Narula
By the way, Cayenne should allow checking if a particular value has been changed, may be in the future releases -Original Message- From: Simran Narula [mailto:snar...@avoka.com] Sent: Thursday, 5 April 2012 1:54 PM To: user@cayenne.apache.org Subject: RE: Track Column level changes in C

RE: Track Column level changes in Cayenne

2012-04-04 Thread Simran Narula
Hey Andrus, Thanks for your reply that day. Just wanted to let you know this Worked !! Thanks heaps for help ! -Original Message- From: Andrus Adamchik [mailto:and...@objectstyle.org] Sent: Wednesday, 28 March 2012 6:50 PM To: user@cayenne.apache.org Subject: Re: Track Column level ch

Re: Using CayenneModeler as standalone tool

2012-04-04 Thread Andrus Adamchik
> Should I put it into JIRA' Yes please. On Apr 4, 2012, at 7:07 PM, Robert Huber @ 7r wrote: > It seems the datanode is not saved only when it is imported via an EOModel > file. I import an EOModel and the datanode appears as it does in the Entity > Modeler. As soon as I save the Cayenne proj

Re: errors

2012-04-04 Thread ADAMA COULIBALY
Hi Andrus I this is the content of my DataMap XML file http://cayenne.apache.org/schema/3.0/modelMap"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://cayenne.apache.org/schema/3.0/modelMap http://cayenne.apache.org/schema/3.0/modelMap.xsd"; project-versio

Re: Using CayenneModeler as standalone tool

2012-04-04 Thread Michael Gentry
Hi Robert, I can understand the EOModel failing to import, especially since EOF-import support is a pretty low priority at this point, however you should be able to add the DataNode in manually. Did you try exiting the modeler after the import, running it again, and seeing if you could add (and s

Re: Using CayenneModeler as standalone tool

2012-04-04 Thread Robert Huber @ 7r
It seems the datanode is not saved only when it is imported via an EOModel file. I import an EOModel and the datanode appears as it does in the Entity Modeler. As soon as I save the Cayenne project, the datanode is lost. So I created a new datanode and copy/pasted all driver info to the newly cr

Re: Natural primary keys, Was: Cayenne with JSF 2

2012-04-04 Thread Mike Kienenberger
We're not talking about whether or not a SSN uniquely identifies a person. We are talking about the process for changing up an incorrectly-entered natural primary key, for whatever reason that might be. On Wed, Apr 4, 2012 at 9:36 AM, Durchholz, Joachim wrote: > Seems like everybody is looking a

Re: Cayenne 3.1 DI - binding

2012-04-04 Thread Andrus Adamchik
On Mar 28, 2012, at 7:38 PM, John Huss wrote: > For extended types you can just do it in your application startup code, not > in the DI module. For me that's in the init method of my HessianServlet > subclass. I don't think there is any DI binding for it. Actually there is. "cayenne.server.use

RE: Natural primary keys, Was: Cayenne with JSF 2

2012-04-04 Thread Durchholz, Joachim
Seems like everybody is looking at the institutions that can't keep their numbers constant. Give it a break. Ordinal numbers of chemical elements cannot change, by definition. I may be too optimistic about ISBNs and EANs. Haven't dealt with them and don't know how reliable their issuers are. I g

Re: Book for cayenne

2012-04-04 Thread Michael Gentry
Hi Yunus, There currently isn't a Cayenne book. Your best source of information is the web site and mailing lists. mrg On Wed, Apr 4, 2012 at 7:20 AM, yunus wrote: > hey can anyone suggest me a good book of cayenne in which every aspect is > covered? > > -- > View this message in context: >

Re: Natural primary keys, Was: Cayenne with JSF 2

2012-04-04 Thread Michael Gentry
Maybe your government doesn't goof up social security numbers, but ours does. :-) http://www2.nbc4i.com/news/2010/dec/06/2/study-finds-millions-duplicate-social-security-num-ar-316988/ Also, don't forget that if a social security number (let's assume the government never messes up and assigns th

Re: Using CayenneModeler as standalone tool

2012-04-04 Thread Andrus Adamchik
The only reason I can think of is that the project wasn't saved... Or there is a bug in the trunk build of the Modeler :) On Apr 4, 2012, at 12:35 PM, Robert Huber @ 7r wrote: > Hello Ari > > Thanks a lot, problem is my DataNode is lost when I open the project (via > splash screen) again. How

Re: Using CayenneModeler as standalone tool

2012-04-04 Thread Robert Huber @ 7r
Hello Ari Thanks a lot, problem is my DataNode is lost when I open the project (via splash screen) again. How can I get my DataNode as well when opening the project? Robert On 04.04.2012, at 10:14, Aristedes Maniatis wrote: > Cayenne modeler is first and foremost a standalone tool. The eclip

Natural primary keys, Was: Cayenne with JSF 2

2012-04-04 Thread Aristedes Maniatis
On 4/04/12 7:06 PM, Durchholz, Joachim wrote: However any time you have a primary key with meaning is probably a mistake in database design. You are best trying to avoid this at all costs unless you are constrained by a legacy system in some way. This is common advice, but the topic is controve

RE: Cayenne with JSF 2

2012-04-04 Thread Durchholz, Joachim
> However any time you have a primary key with meaning is probably > a mistake in database design. You are best trying to avoid this > at all costs unless you are constrained by a legacy system in > some way. This is common advice, but the topic is controversial. Even in non-legacy databases, havi

Re: Using CayenneModeler as standalone tool

2012-04-04 Thread Aristedes Maniatis
Cayenne modeler is first and foremost a standalone tool. The eclipse plugin version is relatively new. When you run modeler, the splash screen shows you the last models you were editing. Clicking one should open it. Ari On 4/04/12 5:38 PM, Robert Huber @ 7r wrote: Hi As a newbie to Cayenne,

Using CayenneModeler as standalone tool

2012-04-04 Thread Robert Huber @ 7r
Hi As a newbie to Cayenne, I would like to know if CayenneModeler can be used sensibly as a standalone application? As described in the docu, if I save a project, I get the 2 files cayenne-.xml and

Re: Cayenne with JSF 2

2012-04-04 Thread Aristedes Maniatis
On 4/04/12 4:49 PM, yunus wrote: How can i prefix primary key with any alphabet like Admin121? This is going to be quite a lot of work to do since any automated mechanism in Cayenne or in the db will work on integer values only. If you are trying to avoid namespace collisions with some other