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: 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: 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

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: 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

Re: Cayenne with JSF 2

2012-04-03 Thread yunus
How can i prefix primary key with any alphabet like Admin121? -- View this message in context: http://cayenne.195.n3.nabble.com/Cayenne-with-JSF-2-tp3499495p3883336.html Sent from the Cayenne - User mailing list archive at Nabble.com.

Re: Cayenne with JSF 2

2012-04-03 Thread John Huss
On Tue, Apr 3, 2012 at 9:09 AM, yunus wrote: > Thanks mike, i'll refer your code. > > Can you tell me how can we relate primary key of one table to other such > that if primary key of one table is autogenerated then primary key of other > table gets automatically filled with the same data. http

Re: Cayenne with JSF 2

2012-04-03 Thread John Huss
On Tue, Apr 3, 2012 at 5:23 AM, yunus wrote: > hi Andrus, > I have two queries related to cayenne- > > 1- I have a table "registration" in which there is a primary key > "EnrolmentId" which is autogenerated after successfully registration. Other > attributes are "Name" and "PAN ID".(PAN ID can be

Re: Cayenne with JSF 2

2012-04-03 Thread yunus
95.n3.nabble.com/Cayenne-with-JSF-2-tp3499495p3881043.html Sent from the Cayenne - User mailing list archive at Nabble.com.

Re: Cayenne with JSF 2

2012-04-03 Thread Mike Kienenberger
On Tue, Apr 3, 2012 at 6:23 AM, yunus wrote: > I have two queries related to cayenne- It would be best if you changed the subject and started a new thread for each new topic. > 1- I have a table "registration" in which there is a primary key > "EnrolmentId" which is autogenerated after successf

Re: Cayenne with JSF 2

2012-04-03 Thread yunus
w can i restrict cayenne to autogenerate the primary key.The scenario is that i have a table "LOGIN" in which "UserID" is primary key and i dont want it to be generated automatically.It is upto the user to create his "userID" so how can i do that? -- View thi

Re: Cayenne with JSF 2

2012-03-30 Thread Andrus Adamchik
t; > -- > View this message in context: > http://cayenne.195.n3.nabble.com/Cayenne-with-JSF-2-tp3499495p3867223.html > Sent from the Cayenne - User mailing list archive at Nabble.com. >

Re: Cayenne with JSF 2

2012-03-29 Thread yunus
etc.Please give me detailed description about it and if anybody has related web application then please send me... i'll be very thankfull to all of you. -- View this message in context: http://cayenne.195.n3.nabble.com/Cayenne-with-JSF-2-tp3499495p3867223.html Sent from the Cayenne - User mailing

Re: Cayenne with JSF 2

2011-11-11 Thread Mike Kienenberger
I have a Cayenne 1.2 + JSF 1.1 app I still maintain. It works well. There's really nothing special required to hook up JSF and Cayenne. On Fri, Nov 11, 2011 at 6:57 AM, Marco Gattei wrote: > Hi everyone, > >    I'm evaluating solutions for creating a back office application. > My usual choice in

Re: Cayenne with JSF 2

2011-11-11 Thread Marek Šabo
Hi, my team deployed Cayenne in solutions with Wicket, JSF2 and Primefaces. From our experience, integration with Wicket is easier, colleagues who worked with JSFs relied heavily on DTOs, in Wicket, you need them seldom, you can use ValueMaps and properties that Cayenne provides, either way

Re: Cayenne with JSF 2

2011-11-11 Thread René Aravena
I am using cayenne + wicket 1.5 + wiquery (jquery in wicket == primefaces look) + mysql and work fine. René Aravena 2011/11/11 Marco Gattei > I knew about Cayenne behing 'really agnostic to the view layer' > Cayenne is a truly gentlemen among ORMs ! > What i was wondering was if JSF would

Re: Cayenne with JSF 2

2011-11-11 Thread Marco Gattei
I knew about Cayenne behing 'really agnostic to the view layer' Cayenne is a truly gentlemen among ORMs ! What i was wondering was if JSF would do be as nice with ORMs :-D Marco Il 11/11/2011 13:02, Andrus Adamchik ha scritto: Haven't used JSF2 myself, but Cayenne is really agnostic to t

RE: Cayenne with JSF 2

2011-11-11 Thread Durchholz, Joachim
Off-topic for the list but probably relevant for you: I've been hearing lots of bad things about JSF and good things about Apache Wicket. I don't know anything about JSF2 or PrimeFaces though, so YMMV. The good news is what others said: the presentation layer should be largely unaffected by the

Re: Cayenne with JSF 2

2011-11-11 Thread Michael Gentry
Hi Marco, I've not used JSF, but Cayenne should be relatively pluggable into any UI framework you might be using. I personally use it with Tapestry 5 without any hassles. mrg On Fri, Nov 11, 2011 at 6:57 AM, Marco Gattei wrote: > Hi everyone, > >    I'm evaluating solutions for creating a bac

Re: Cayenne with JSF 2

2011-11-11 Thread Andrus Adamchik
Haven't used JSF2 myself, but Cayenne is really agnostic to the view layer. If you've mastered JSF, you shouldn't have any trouble using Cayenne with it. Cheers, Andrus On Nov 11, 2011, at 2:57 PM, Marco Gattei wrote: > Hi everyone, > >I'm evaluating solutions for creating a back office ap

Cayenne with JSF 2

2011-11-11 Thread Marco Gattei
Hi everyone, I'm evaluating solutions for creating a back office application. My usual choice in the past was Apache Click + Apache Cayenne, but needing some really big sparkle on the UI, i was thinking about a JSF2 web application with PrimeFaces. But instead of using JPA + Hibernate i wo