Re: Anotacie (Hibernate) a dedicnost tried

2007-07-15 Tema obsahu Jakub Zvěřina
Anotace se dedi taky, takze neni treba pretezovat getId(), ale napsat to primo takto v predkovi: @AnnotatedSuperClass public class BeanID { @Id public Long getId() { return id; } } BTW public class Osoba extends BeanID {...} musi mit anotaci @Entity Nejsem si teda jistej, ze jde dedit @Id

RE: Anotacie (Hibernate) a dedicnost tried

2007-07-13 Tema obsahu Michal Palička
Of Lukas Barton Sent: Thursday, July 12, 2007 10:56 AM To: Java Subject: Re: Anotacie (Hibernate) a dedicnost tried [EMAIL PROTECTED] wrote: V potomkovi by som chcel pouzit anotaciu na hibernate, ale neviem ako mam dat anotaciu pre id, kedze sa v potomkovi nespomina a do predka to napisa

Re: Anotacie (Hibernate) a dedicnost tried

2007-07-12 Tema obsahu Lukas Barton
[EMAIL PROTECTED] wrote: V potomkovi by som chcel pouzit anotaciu na hibernate, ale neviem ako mam dat anotaciu pre id, kedze sa v potomkovi nespomina a do predka to napisat nemozem, kedze ho vyuzivaju dalsie triedy Proc ji nemuzete zapsat do predka? Protoze pak si staci zavest v Hibernatu ded

RE: Anotacie (Hibernate) a dedicnost tried

2007-07-12 Tema obsahu Stöhr Miroslav RNDr . Ph . D .
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kuba Abu Sent: Thursday, July 12, 2007 10:32 AM To: Java Subject: Re: Anotacie (Hibernate) a dedicnost tried Tak to je naozaj stupidna otazka, Vy ze jste vedouci oddeleni vyvoja zakaznickych IS?? Co treba public class Osoba

Re: Anotacie (Hibernate) a dedicnost tried - vyriesene

2007-07-12 Tema obsahu marian . stevlik
> Tak to je naozaj stupidna otazka, Vy ze jste vedouci oddeleni vyvoja > zakaznickych IS?? > Co treba > > public class Osoba extends BeanID { > > @Id > public Long getId() { > super.getId(); > } > > S pozdravem. Dakujem, uz som na to medzitym prisiel ;) Marian Stevlik (Michal) Veduci oddele

Re: Anotacie (Hibernate) a dedicnost tried

2007-07-12 Tema obsahu Kuba Abu
Tak to je naozaj stupidna otazka, Vy ze jste vedouci oddeleni vyvoja zakaznickych IS?? Co treba public class Osoba extends BeanID { @Id public Long getId() { super.getId(); } S pozdravem. [EMAIL PROTECTED] wrote: Hi all, Maybe stupidna otazka, ale zatial som nenasiel riesenie :( Doteraz