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
>
>
> 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
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
> 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
> >
> >
> > 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
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
> > > * 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
--- "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
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
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
> 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
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
>
> 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
> 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
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
15 matches
Mail list logo