RE: [Hibernate] Hibernate XDoclet Task

2003-01-01 Thread Gavin King
I agree with all this. Writing get/set pairs is not that painful. > -Original Message- > From: Konstantin Priblouda [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 1 January 2003 12:36 AM > To: Max Rydahl Andersen > Cc: hibernate-devel > Subject: Re: [Hibernate] Hibernate XDoclet Task > >

RE: [Hibernate] CodeGenerator

2003-01-01 Thread Gavin King
> Its it the actual field, the getX() or the setX() that should > be modified ? (The same actually goes for the "description" tag...) I meant the get/set pair. Fields should always be private. perhaps it makes more sense to have getter-scope and setter-scope. > How about having "description-get

RE: [Hibernate] ms access dialect problem

2003-01-01 Thread Gavin King
Its not essential to support identity columns. If you can't seem to get it working, just ignore it for now. (And don't worry about the test suites that require it.) See if you can get FooBarTest working (you might need to skip all the subquery tests. > -Original Message- > From: Pietr

Re: [Hibernate] Hibernate XDoclet Task

2003-01-01 Thread Konstantin Priblouda
> Just corius, why does generating add, set, get for > the hibernate beans makes > you loose any advantage ? (Where is there created a > prallel class > hierarchy?) XDoclet works like this: - grab source class tagged with tags - generate something out of it. So, say you have base class without

Re: [Hibernate] CodeGenerator

2003-01-01 Thread Max Rydahl Andersen
> > > > > > JavaDoc comment for getBar() > > > > java.lang.Object > > > > . > > But this one ? Isn't this a bit "cloudy" > If I understand this correctly you want that if "java-type" > is provided the codegenerator should use that type instead of > the t

Re: [Hibernate] Tools road map

2003-01-01 Thread Max Rydahl Andersen
And I've added some replies there also :) (look for "- Max") /max - Original Message - From: "Gavin King" <[EMAIL PROTECTED]> To: "Max Rydahl Andersen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, December 31, 2002 7:09 AM Subject: RE: [Hibernate] Tools road map My comments a

Re: [Hibernate] Hibernate XDoclet Task

2003-01-01 Thread Max Rydahl Andersen
> > > * Is there any chance to add predefined queries > > to the > > > generated mapping? > > > > Ummm, I thought theres was a @hibernate.query tag > > > > > * Is there any chance to generate the > > bean-pattern > > > (setXXX(), getXXX() > > >and especially the > > addXXX(Child)/setXXX(Paren

Re: [Hibernate] List only returns first row, rather than both

2003-01-01 Thread Konstantin Priblouda
--- "Raible, Matt" <[EMAIL PROTECTED]> wrote: > I have to rows in my "user" table and I expect to > get two rows of data back. > However, the following query returns two items in > the list, but they're the > same: > > List users = (List) ses.find("from cct_user in class > com.cable.comcast.dmc.i

[Hibernate] List only returns first row, rather than both

2003-01-01 Thread Raible, Matt
I have to rows in my "user" table and I expect to get two rows of data back. However, the following query returns two items in the list, but they're the same: List users = (List) ses.find("from cct_user in class com.cable.comcast.dmc.itd.cct.persistence.User where cct_user.userId=?", userId, Hiber

Re: [Hibernate] Using CLOBs

2003-01-01 Thread Ugo Cei
Gavin King wrote: The name of the type is "clob", and the expected property type is java.sql.Clob. Note that there are restrictions upon what you can do with Clobs (they can't be used outside of transaction, for example). You should also take notice of Hibernate.createClob(). Thanks. Everything wor

Re: [Hibernate] Hibernate XDoclet Task

2003-01-01 Thread Konstantin Priblouda
> I've long sought for an example where BeanInfo > classes could > be used for something usefull (and Visual Age is not > one of them)... > Do you have an example of this ? Is it some kind of > databinding you > are doing or ? Well, Say I have ejb backend with shitload of entities, and swing cli

[Hibernate] Introduction of src...

2003-01-01 Thread Max Rydahl Andersen
Gavin, I've just discovered your introduction of src :) I like the tools naming, they make more sense now Just wanna know if it is "safe" to start developing/patching on hbm2java now, or do you have more tricks up your "sleefes" :) /max

Re: [Hibernate] Hibernate XDoclet Task

2003-01-01 Thread Max Rydahl Andersen
> > Anyway, using xdoclet for generating getters/setters > is an overkill. Roger :) > In Hibernate context follwing parts of xdoclet would > be usefull: > - java bean module -> generate your beaninfo > for hibernated classes ( in EJB scenario it has to be > tweaked for value/data objects -> stin

Re: [Hibernate] Hibernate XDoclet Task

2003-01-01 Thread Konstantin Priblouda
> Of course - I momentarily forgot that XDoclet > augments the > actually used class... sorry .) (the reason it put > me of is that > you said parallel hierachies, as if the two classes > was not related - they > are, the one is Base and the other is Concrete, that > is not parallel - just > 2 time

[Hibernate] Length of Hibernate-generated aliases in SQL

2003-01-01 Thread Mark Woon
Does Hibernate do any checking on the length of the aliases it generates when it creates it's SQL queries? I'm getting "identifier is too long" errors against Oracle 9.2 at the moment because Hibernate tacks on some extra text to some column names. If not, would it be terribly difficult to add