Re: [hibernate-dev] Documentation bug?
by Emmanuel Bernard
It depends,
For documentation issue, yes (check the SVN version though)
For a behavior you think is a bug, it is usually better to ask first for
recommendation on the forum (many eyes are watching)
Then you can post a JIRA issue with a minimal runnable test case.
We have a very high false positive ratio, so jumping on JIRA is not a
good thing to do.
Emmanuel
andresgr wrote:
>
> Done.
>
> By the way, should i use JIRA directly to report issues? Or may i post
> here a message to get something like "yes, that's a bug. Open JIRA
> issue." like in this case...
>
> Regards
>
> 2006/10/31, Emmanuel Bernard <emmanuel(a)hibernate.org>:
> > yes, open a JIRA issue please
> >
> > andresgr wrote:
> > >
> > > Hi.
> > >
> > > In Section "14.15. Tips & Tricks":
> > >
> > > You can count the number of query results without actually returning
> > > them:
> > > ( (Integer) session.iterate("select count(*) from ....").next()
> > > ).intValue()
> > >
> > >
> > > I don't find any session.iterate() method... Maybe it should read:
> > >
> > > ( (Integer) session.createQuery("select count(*) from
> > > ....").iterate().next() ).intValue()
> > >
> > > Regards
> > >
> > >
> > > --
> > > -=-=-=-=-=-=-=-=-=-=-=-=-
> > > Andrés González.
> > > http://coyotevil.blogspot.com
> > >
> > > _______________________________________________
> > > hibernate-dev mailing list
> > > hibernate-dev(a)lists.jboss.org
> > > https://lists.jboss.org/mailman/listinfo/hibernate-dev
> > >
> >
>
>
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-
> Andrés González.
> http://coyotevil.blogspot.com
>
17 years, 11 months
Fwd: [hibernate-dev] Session get() and load()
by Christian Bauer
Guys, be nice to people who don't read the mailing list page. Alexis
is watching.
Begin forwarded message:
> From: "Alexis Pigeon" <pigeon.alexis(a)gmail.com>
> Date: October 31, 2006 7:01:01 PM GMT+01:00
> To: "Christian Bauer" <christian.bauer(a)jboss.com>
> Subject: Re: [hibernate-dev] Session get() and load()
>
> Hi Christian,
>
> On 31/10/06, Christian Bauer wrote:
>>
>> On Oct 31, 2006, at 6:35 PM, Vikas Phonsa wrote:
>>
>> > I'm a newbie to hibernate 3 (haven't worked with older versions)
>> > and am trying to understand the difference between the get() and
>> > the load() methods of the Hibernate Session Object.
>>
>> http://forum.hibernate.org/
>
> I've been using Hibernate for a year and a half now, and been
> subscibed to the dev mailing list since then. I know many users are
> confused about the purpose of this list (Hibernate development-related
> questions only, any usage question should be redirected to the
> forums), however this shouldn't imply rudeness. Just adding "Hi" and
> "Hope this helps" before hitting the reply button, maybe a little
> sentence explaining (s)he should post to the forums would have taken
> you much time.
> Moreover, you must admit that at least one of the questions, from a
> newbie point of view, should obviously be asked to the Hibernate
> developers, namely :
>
>> Is one of those two methods there just for backward compatibility
>> or any other such
>> reasons?
>
> Anyway, thank you for your time (and others') developing Hibernate,
> it's really a great lib!
>
> Cheers,
> alexis
17 years, 11 months
Session get() and load()
by Vikas Phonsa
I'm a newbie to hibernate 3 (haven't worked with older versions) and am
trying to understand the difference between the get() and the load()
methods of the Hibernate Session Object.
After reading the Hibernate documentation and the discussion at
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=87363&postdays=
0&postorder=asc&start=0 I think I know what those methods do. My code
is giving the expected results also.
But I have following questions:
Is there any reason to favor one method over the other, besides the
application specific considerations?
Is one of those two methods there just for backward compatibility or any
other such reasons?
Thanks in advance.
Vikas
17 years, 11 months
hbm2doc with inner-classes
by Mark Hobson
Hi there,
I'm looking at fixing hbm2doc to work with inner-classes and figure
the following changes to POJOClass are necessary as it stands:
- getShortName, getDeclarationName and getJavaTypeName need to return
X.Y for inner classes, not just Y
I'm not entirely sure of the distinction between getShortName and
getDeclarationName - the latter seems to account for meta attributes
whereas the former doesn't. Also, changing getJavaTypeName requires
altering the behaviour of ImportContextImpl such that:
ImportContextImpl.importType("a.b.X.Y") == "X.Y" (import a.b.X)
Obviously these changes will have repercussions in other areas of
hbm2x. Any thoughts on how to minimise damage?
Mark
17 years, 11 months
Documentation bug?
by andresgr
Hi.
In Section "14.15. Tips & Tricks":
You can count the number of query results without actually returning them:
( (Integer) session.iterate("select count(*) from ....").next() ).intValue()
I don't find any session.iterate() method... Maybe it should read:
( (Integer) session.createQuery("select count(*) from
....").iterate().next() ).intValue()
Regards
--
-=-=-=-=-=-=-=-=-=-=-=-=-
Andrés González.
http://coyotevil.blogspot.com
17 years, 11 months