In general it can't figure out the type. Consider:
from foo in class Foo where foo.floatValue + 1 = ?
from foo in class Foo where someUserFunction( foo.value ) = ?
etc
On the other hand, Query.setParameter() has some hueristics for guessing the
type from the given object, which is not 100% r
Just a thought...shouldn't Hibernate be able to infer the Type or Type[]
needed in find/findIdentifiers/iterate calls from the query itself?
e.g.
List moreCats = sess.find(
"from cat in class eg.Cat where " +
"cat.name = 'Fritz' or cat.id = ? or cat.id = ?",
new Object[] { id1, id2 }
Ah, yeah I can see how that could happen. I'll fix it tomorrow. This is a
fairly new bug, I think.
- Original Message -
From: "Andrea Aime" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 25, 2002 1:23 AM
Subject: [Hibernate] Another bug (this is not my lucky day...)
>
I've found another bug... let's consider the following mapping:
the following query:
Iterator num = s.iterate("select max(c.idCode) from c in " +
Customer.class);
will return the max of the id property, not that of idCode! Changing the
column
name doesn't help, changing the
Yup, thats right.
- Original Message -
From: "Urberg, John" <[EMAIL PROTECTED]>
To: "'Andrea Aime'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, October 24, 2002 11:15 PM
Subject: RE: [Hibernate] Another problem: jmx vs static initialization
> >> Your question is timely, I wa
> But now we do not NEED the proxies so it is better now, but not perfect
> (since someone might
> like to have proxies :)
You still need proxies for polymorphic persistence. Check out the latest
doco on the website for an explanation..
> Any suggestions on formats/semantics of it all ? (pr
> This is because the proxy generation depends on java reflection and java
> reflection requires .class files.
> But if you are using proxies in the hbm.xml file then the generated code
> cannot compile because it is using the not-yet generated proxy interfaces
> :) - its a chicken-egg problem :)
> Tried now... seems to be visibly faster without batch updates :-)... but
> why?
What we might need to do here is have a hibernate.max_batch_size property to
ensure that the batch doesn't get too huge. Its possibe that your problem is
a result of queueing up 1000 statements in a single batch. Do
Gavin King wrote:
There are a couple of different issues in this:
[...]
Im also not sure why the inserts are slow. They shouldn't be. Have you tried
disabling batch updates hibernate.use_jdbc_batch=false?
Gavin
Tried now... seems to be visibly faster without batch updates :-)... but
why?
An
Ah documentation is out-of-date. SAPDBDialect supports sequences :)
- Original Message -
From: "Andrea Aime" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 24, 2002 9:09 PM
Subject: [Hibernate] A final request :-)
> Ah, btw, SAPDB supports sequences but Hibernate doe
I have only used Hibernate under WebSphere (hotdeploy; never heard of it!)
so I'm not really the best one to ask about this stuff. John Urberg might be
able to help, possibly
- Original Message -
From: "Andrea Aime" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 24
Hi Gavin, hi everybody else,
while I'm at it, I would like to ask you some hints about a problem:
the app I'm developing now uses hibernate as a jmx service... there
are some problems here:
- each time I deploy my application I have to redeploy also the jmx
service because maybe some class has be
HibernateServiceMBean declares:
public void setProperty(String property, String value);
There should be some way to call that from hibernate-service.xml, but I'm
not sure myself (not a JBoss user).
It might be worth having a method that takes a list of name/value pairs,
perhaps.
- Origi
There are a couple of different issues in this:
Hibernate does *not* (yet) do mass deletes. Usually we need to load an
object up before we delete it, in case it has
(1) Lifecycle callbacks
(2) toplevel collections
(3) cascading deletes
(4) references to other deleted objects which need to be nulli
I have a problem with Hibernate... consider the following mapping
(incomplete, I hope this is the relevant part):
class="it.satanet.ketp
15 matches
Mail list logo