hi,
apparently is not allowed for a in a
collection, only for plain s... is there a special reason? how
hard it is to implement this?
thx,
viktor
--
http://fastmail.fm - I mean, what is it about a decent email service?
---
This SF.NET
hi,
On Mon, 3 Feb 2003 09:32:39 +1100, [EMAIL PROTECTED] said:
>
> Are there proxies involved?
>
hopefully not :) it seems that there's actually two calls to
nestedChild.setParent() on the same nestedChild instance - the second one
occurs during deepCopy, and blows away the value that was set f
Gavin_King/[EMAIL PROTECTED] wrote:
Well, I've often wondered if the interface(s) to
cirrus.hibernate.impl.ClassPersister
cirrus.hibernate.impl.CollectionPersister
used by SessionImpl could be abstracted, making Hibernate much more modular
internally. I hadn't done this because
(a) nobody had a
hi,
On Thu, 9 Jan 2003 10:03:32 -0700, "Russell Smyth"
<[EMAIL PROTECTED]> said:
> our current main use is a field that is write-once. We would like to
> dissallow "re-setting" of the field once it is set, but by dissallowing
> resetting the property, hibernate cannot re-instantiate the object
>
hi,
On Wed 19 Feb 2003 13:14:30 +0100, "Tom Klaasen" <[EMAIL PROTECTED]>
said:
> Following Gavin's recommendations, I've tried to wrap the key in a
> composite-id tag in the .hbm.xml:
>
>
>
>
>
if i understand correctly, you have a single field primary key wrapper
class. in this case
On Wed, 19 Feb 2003 14:14:54 -0500, "Viktor Szathmary"
<[EMAIL PROTECTED]> said:
> so, finallly you end up with an extra one-line method in all your pk
> classes, and this in the mapping file:
>
>
>
>
>
hi,
i'm trying to port an app to hibernate 2. it runs inside an appserver - i
was using Hibernate.configure() which took care of loading the XML, and
binding the SessionFactory to JNDI... it doesn't seem that new
Configuration().configure() is equivalent... do i need to manually bind
the SessionFa
hi,
On Fri, 31 Jan 2003 16:02:49 +1100, [EMAIL PROTECTED] said:
>
> private void setTopParent(TopLevelParent topParent) {
>this.parent = topParent.getComponent();
> }
>
>
> should do what you need ;)
ok, it does not :) unfortunately the call sequence is:
- nestedChild.setParent( toplevel
hi,
On Mon, 06 Jan 2003 22:43:32 +1100, "Daniel Bradby"
<[EMAIL PROTECTED]> said:
>
> Finally back from holidays and uploaded and released the source/
>
> Go try it out! - http://sourceforge.net/projects/hibernator
>
could you please make it compatible with JDK 1.3? there seems to be some
1.4
On Wed, 29 Jan 2003 00:06:38 -0500, "Viktor Szathmary"
<[EMAIL PROTECTED]> said:
> hi,
>
> to annoy people with more trivial questions: is it possible to have a
> bidirectional one-to-many relationship between a component and a
> firstclass object? i'm getting
On Wed, 29 Jan 2003 17:18:29 +1100, [EMAIL PROTECTED] said:
>
> > ok, this is just the good old nanosecond issue again. (btw, when is the
> > next release coming, that has that fix? :)
>
> In about two hours.
that's great!
> > however, previously (when the whole thing was mapped as Subscription
hi,
you can also monitor new releases on sourceforge, and get notifications
via email...
viktor
On Tue, 21 Jan 2003 00:26:25 +0330, "Ara Abrahamian" <[EMAIL PROTECTED]>
said:
> From my experience with XDoclet, these kinds of blabla-announce lists
> don't work well. Xdoclet-user has hundreds
hi,
> On Tue, 11 Feb 2003 22:35:13 +1100 (EST), "Gavin King" <[EMAIL PROTECTED]>
> said:
> >
> > new Configuration.configure().buildSessionFactory();
>
> i tried that too, didn't seem to make a difference.. in fact i see no
> indication in the method where it would do the JNDI bind (it just crea
On Sun, 12 Jan 2003 17:32:16 +1100 (EST), "Gavin King" <[EMAIL PROTECTED]>
said:
> > am i doing something wrong or this is a known limitation?
>
> You must be doing something wrong (though I'm not quite sure
> what). A bidirectional one-to-many association with
> readonly="true" should require onl
On Thu, 30 Jan 2003 17:17:54 +1100, [EMAIL PROTECTED] said:
>
> So do you want to just do a little experiment to find out
> which version(s) support for
> , because I forget.
the 1.1 DTD doesn't allow this, and even if i force it in there, it's
apprently ignored... i'm using 1.2.3 (btw, the fix
hi,
On Sun, 2 Feb 2003 08:41:22 -0800 (PST), "jiesheng zhang"
<[EMAIL PROTECTED]> said:
>
> I use the Java code instead of Hibernate to keep the
> parent-child relationship.
yeah, that's a very reasonable approach, i just got bogged down in the
beauty of the hibenate :)
however, even with the s
ad to change TimestampType to cope with
> all the various quirks of different databases .. its driving me
> crazy .. these kind of issues SHOULD be defined by the JDBC standard.
> What database are you using?
>
> I will look carefully at this tonight.
>
> > On
hi,
suppose i have a class Foo, that has a single Bar property. Bar is just a
convenience wrapper around a Map (doesn't implement Map). How can one map
this sort of relationship, without making Bar a first class object with
it's own identity (and therefore 3 tables instead of the two it really
nee
hi,
Ampie Barnard wrote:
The generated class looks like a subclass of the original
heh, but of course :) silly me...
I think it is a good idea Gavin. In theory, it should be faster than
proxies, but one might just want to test that theory.
i think the difference would be marginal, as dynamic
hi,
i found out more after playing around for a littlebit... it turns out one
of the properties in Bar is a java.util.Date... if i remove that property
from the mapping, everything's cool, it does 2 inserts as expected..
however, with the Date there, i believe an equality check fails (i assume
hib
hi,
On Tue, 14 Jan 2003 21:55:49 -0500, "Viktor Szathmary"
<[EMAIL PROTECTED]> said:
> i found out more after playing around for a littlebit... it turns out one
> of the properties in Bar is a java.util.Date... if i remove that property
> from the mapping, everything
On Mon, 3 Feb 2003 11:04:51 +1100, [EMAIL PROTECTED] said:
>
> Yeah, don't worry about the call from deepCopy(). I removed that
> in the latest CVS, since it was unnecessary. It should not have been
> actually *harmful*, however.
i was using hib2b2.. and i've also removed any usage of ... so
hi,
On Wed, 29 Jan 2003 15:30:40 +1100, [EMAIL PROTECTED] said:
>
> Use a mapping. (or a custom type)
>
duh.. for some reason i thought i remembered reading in the docs, that
hibernate doesn't support collections inside components... i'm getting
senile i guess.
thx,
viktor
--
http://fastma
On Wed, 29 Jan 2003 00:57:42 -0500, "Viktor Szathmary"
<[EMAIL PROTECTED]> said:
>
> however, apparently this is less efficient than a regular one-to-many
> was: even upon the first save(..) it generates:
> INSERT INTO Subscription ...
> INSERT INTO Item ...
>
hi,
On Wed, 12 Feb 2003 09:16:03 +1100, [EMAIL PROTECTED] said:
>> anywhere... it turns out that there's a "hibernate.properties" bundled in
>> the hibernate.jar which had this in it.. i removed this file from
>> hibernate.jar, everything's cool now... why is this file bundled with
>> hibernate.
hi,
On Tue, 11 Feb 2003 22:35:13 +1100 (EST), "Gavin King" <[EMAIL PROTECTED]>
said:
>
> You need to do:
>
> new Configuration.configure().buildSessionFactory();
i tried that too, didn't seem to make a difference.. in fact i see no
indication in the method where it would do the JNDI bind (it j
On Mon, 10 Feb 2003 11:27:27 +1100, [EMAIL PROTECTED] said:
>
> Shouldn't need to. You should only need to provide
> a name attribute to the element.
>
> Note that this stuff was broken in beta 1, but I think
> it is working in beta 2.
I am using beta2, and the same config xml as i had with 1.2
hi,
how is one supposed to do a find() where a parameter is a user type? i
wrote an URLUserType that just maps to a single varchar field (so i tried
Hibernate.STRING as the type), but i cant seem to be able to query these
fields properly (ClassCastException). i can provide more details if
needed,
hi,
i decided to take the path of least resistance, and migrate to hib2 (took
about 5 minutes) to get support for ...
alas, i got an IllegalArgumentException: "argument type mismatch" when
it's calling the setter... it turns out the problem is more of a
misunderstanding - the for the nested comp
hi,
On Mon, 11 Aug 2003 16:18:25 -0400, "Gerry Duprey"
<[EMAIL PROTECTED]> said:
> We have an application where we need to keep a version of every change to a
> record in a table ever made and the effective date it was created/changed on
> each version. The number of changes are low (one or tw
hi,
i was shocked to learn that Gavin was hired at microsoft... and he even
started a blog..
http://blogs.gotdotnet.com/gking/
:)
v.
---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems o
31 matches
Mail list logo