You can subscribe to this list here.
2002 |
Jan
(2) |
Feb
(157) |
Mar
(111) |
Apr
(61) |
May
(68) |
Jun
(45) |
Jul
(101) |
Aug
(132) |
Sep
(148) |
Oct
(227) |
Nov
(141) |
Dec
(285) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(518) |
Feb
(462) |
Mar
(390) |
Apr
(488) |
May
(321) |
Jun
(336) |
Jul
(268) |
Aug
(374) |
Sep
(211) |
Oct
(246) |
Nov
(239) |
Dec
(173) |
2004 |
Jan
(110) |
Feb
(131) |
Mar
(85) |
Apr
(120) |
May
(82) |
Jun
(101) |
Jul
(54) |
Aug
(65) |
Sep
(94) |
Oct
(51) |
Nov
(56) |
Dec
(168) |
2005 |
Jan
(146) |
Feb
(98) |
Mar
(75) |
Apr
(118) |
May
(85) |
Jun
(75) |
Jul
(44) |
Aug
(94) |
Sep
(70) |
Oct
(84) |
Nov
(115) |
Dec
(52) |
2006 |
Jan
(113) |
Feb
(83) |
Mar
(217) |
Apr
(158) |
May
(219) |
Jun
(218) |
Jul
(189) |
Aug
(39) |
Sep
(3) |
Oct
(7) |
Nov
(4) |
Dec
(2) |
2007 |
Jan
|
Feb
(2) |
Mar
(7) |
Apr
(3) |
May
(3) |
Jun
(8) |
Jul
(1) |
Aug
(1) |
Sep
|
Oct
(4) |
Nov
(7) |
Dec
|
2008 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2009 |
Jan
(6) |
Feb
|
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(1) |
Jul
(10) |
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
(3) |
2010 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Gavin K. <ga...@ap...> - 2002-10-23 10:43:27
|
Christoph, how does it work, by the way? Is it a seperate tool or an option to SchemaExport or what? just curious.... ----- Original Message ----- From: "Christoph Sturm" <ch...@mc...> To: "Yaron Zakai" <ya...@id...>; "'Christoph Sturm'" <ch...@sc...>; "Gavin King" <ga...@ap...> Cc: "hibernate list" <hib...@li...> Sent: Wednesday, October 23, 2002 8:38 PM Subject: Re: [Hibernate] dynamic schema update > I have it on my harddisk at home, and its actually finished and just needs > some more tests. I dont know when 1.1.6 will be released, but I think i will > commit it soon, at least before the weekend. > > regards > chris > > > > ----- Original Message ----- > From: "Yaron Zakai" <ya...@id...> > To: "'Christoph Sturm'" <ch...@sc...>; "Gavin King" > <ga...@ap...> > Cc: "hibernate list" <hib...@li...> > Sent: Wednesday, October 23, 2002 12:08 PM > Subject: RE: [Hibernate] dynamic schema update > > > > Hi, > > > > Is this feature going to get into 1.1.6 ? > > > > Thanks, Yaron. > > > > -----Original Message----- > > From: Christoph Sturm [mailto:ch...@sc...] > > Sent: Thursday, October 17, 2002 9:57 PM > > To: Gavin King > > Cc: hibernate list > > Subject: Re: [Hibernate] dynamic schema update > > > > > > I will look at it when I have the time. I think they dont have alter > > table support too. If they have a nice structure we could add the stuff > > we need and submit it back. There are so many java persistency > > frameworks, and it would be nice if they would share some code that is > > common to them all, and sql generation is for sure. > > > > greetz > > chris > > > > > > Gavin King wrote: > > > > >Hmmmm the only trouble with this is that they support *way* fewer > platforms > > >than us. > > > > > >Also, can you tell if there is support for subqueries in the API? > > > > > >----- Original Message ----- > > >From: "Gavin King" <ga...@ap...> > > >To: "Christoph Sturm" <ch...@sc...> > > >Cc: "hibernate list" <hib...@li...> > > >Sent: Friday, October 18, 2002 5:34 AM > > >Subject: Re: [Hibernate] dynamic schema update > > > > > > > > > > > > > > >>Yeah, funny, I looked at this project about a year ago in the early > stages > > >>of Hibernate but it didnt seem far enough advanced to actually use. > > >> > > >> > > >Looking > > > > > > > > >>pretty good now. > > >> > > >>----- Original Message ----- > > >>From: "Christoph Sturm" <ch...@sc...> > > >>To: "Gavin King" <ga...@ap...> > > >>Cc: "hibernate list" <hib...@li...> > > >>Sent: Friday, October 18, 2002 5:30 AM > > >>Subject: Re: [Hibernate] dynamic schema update > > >> > > >> > > >> > > >> > > >>>Gavin King wrote: > > >>> > > >>> > > >>> > > >>>>>I have now added a Schemaupdater to hibernate. At the moment it only > > >>>>>adds missing colums to the schema, and creates tables if they are > > >>>>>missing. I have testet it with sql server. All the rest of hibernate > > >>>>>seems to still work, so I could commit it to cvs if you have no > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>objections. > > >>>> > > >>>>Cool!! Go Ahead and check it in. Sounds like something that will > really > > >>>>be used by a lot of users.... > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>>>Something we should really do in the near future is create classes > for > > >>>>>all the sql statements. I think we should think of our database > > >>>>> > > >>>>> > > >dialects > > > > > > > > >>>>>as SQL-Statementfactory-factories, then we could deal with different > > >>>>> > > >>>>> > > >sql > > > > > > > > >>>>>dialects much easier. > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>Yes, you are absolutely right (and I have mentioned this before). The > > >>>> > > >>>> > > >>main > > >> > > >> > > >>>>remaining piece of bad-design is the lack of a proper OO model of SQL. > > >>>>If you want to have a go at writing an elegant heirarchy of classes > for > > >>>>this, > > >>>>it would be _highly_ appreciated. > > >>>> > > >>>> > > >>>> > > >>>> > > >>>i wonder if > > >>>http://sourceforge.net/projects/crossdb/ would be an option. Just saw > > >>>that the ojb guys use this. > > >>> > > >>>regards > > >>> chris > > >>> > > >>> > > >> > > >>------------------------------------------------------- > > >>This sf.net email is sponsored by: viaVerio will pay you up to > > >>$1,000 for every account that you consolidate with us. > > >>http://ad.doubleclick.net/clk;4749864;7604308;v? > > >>http://www.viaverio.com/consolidator/osdn.cfm > > >>_______________________________________________ > > >>hibernate-devel mailing list > > >>hib...@li... > > >>https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > >> > > >> > > > > > > > > > > > >------------------------------------------------------- > > >This sf.net email is sponsored by: viaVerio will pay you up to > > >$1,000 for every account that you consolidate with us. > > >http://ad.doubleclick.net/clk;4749864;7604308;v? > > >http://www.viaverio.com/consolidator/osdn.cfm > > >_______________________________________________ > > >hibernate-devel mailing list > > >hib...@li... > > >https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: viaVerio will pay you up to > > $1,000 for every account that you consolidate with us. > > http://ad.doubleclick.net/clk;4749864;7604308;v? > > http://www.viaverio.com/consolidator/osdn.cfm > > _______________________________________________ > > hibernate-devel mailing list > > hib...@li... > > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > > > > > ------------------------------------------------------- > > This sf.net emial is sponsored by: Influence the future > > of Java(TM) technology. Join the Java Community > > Process(SM) (JCP(SM)) program now. > > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en > > _______________________________________________ > > hibernate-devel mailing list > > hib...@li... > > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > |
From: Christoph S. <ch...@mc...> - 2002-10-23 10:38:07
|
I have it on my harddisk at home, and its actually finished and just needs some more tests. I dont know when 1.1.6 will be released, but I think i will commit it soon, at least before the weekend. regards chris ----- Original Message ----- From: "Yaron Zakai" <ya...@id...> To: "'Christoph Sturm'" <ch...@sc...>; "Gavin King" <ga...@ap...> Cc: "hibernate list" <hib...@li...> Sent: Wednesday, October 23, 2002 12:08 PM Subject: RE: [Hibernate] dynamic schema update > Hi, > > Is this feature going to get into 1.1.6 ? > > Thanks, Yaron. > > -----Original Message----- > From: Christoph Sturm [mailto:ch...@sc...] > Sent: Thursday, October 17, 2002 9:57 PM > To: Gavin King > Cc: hibernate list > Subject: Re: [Hibernate] dynamic schema update > > > I will look at it when I have the time. I think they dont have alter > table support too. If they have a nice structure we could add the stuff > we need and submit it back. There are so many java persistency > frameworks, and it would be nice if they would share some code that is > common to them all, and sql generation is for sure. > > greetz > chris > > > Gavin King wrote: > > >Hmmmm the only trouble with this is that they support *way* fewer platforms > >than us. > > > >Also, can you tell if there is support for subqueries in the API? > > > >----- Original Message ----- > >From: "Gavin King" <ga...@ap...> > >To: "Christoph Sturm" <ch...@sc...> > >Cc: "hibernate list" <hib...@li...> > >Sent: Friday, October 18, 2002 5:34 AM > >Subject: Re: [Hibernate] dynamic schema update > > > > > > > > > >>Yeah, funny, I looked at this project about a year ago in the early stages > >>of Hibernate but it didnt seem far enough advanced to actually use. > >> > >> > >Looking > > > > > >>pretty good now. > >> > >>----- Original Message ----- > >>From: "Christoph Sturm" <ch...@sc...> > >>To: "Gavin King" <ga...@ap...> > >>Cc: "hibernate list" <hib...@li...> > >>Sent: Friday, October 18, 2002 5:30 AM > >>Subject: Re: [Hibernate] dynamic schema update > >> > >> > >> > >> > >>>Gavin King wrote: > >>> > >>> > >>> > >>>>>I have now added a Schemaupdater to hibernate. At the moment it only > >>>>>adds missing colums to the schema, and creates tables if they are > >>>>>missing. I have testet it with sql server. All the rest of hibernate > >>>>>seems to still work, so I could commit it to cvs if you have no > >>>>> > >>>>> > >>>>> > >>>>> > >>>>objections. > >>>> > >>>>Cool!! Go Ahead and check it in. Sounds like something that will really > >>>>be used by a lot of users.... > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>>Something we should really do in the near future is create classes for > >>>>>all the sql statements. I think we should think of our database > >>>>> > >>>>> > >dialects > > > > > >>>>>as SQL-Statementfactory-factories, then we could deal with different > >>>>> > >>>>> > >sql > > > > > >>>>>dialects much easier. > >>>>> > >>>>> > >>>>> > >>>>> > >>>>Yes, you are absolutely right (and I have mentioned this before). The > >>>> > >>>> > >>main > >> > >> > >>>>remaining piece of bad-design is the lack of a proper OO model of SQL. > >>>>If you want to have a go at writing an elegant heirarchy of classes for > >>>>this, > >>>>it would be _highly_ appreciated. > >>>> > >>>> > >>>> > >>>> > >>>i wonder if > >>>http://sourceforge.net/projects/crossdb/ would be an option. Just saw > >>>that the ojb guys use this. > >>> > >>>regards > >>> chris > >>> > >>> > >> > >>------------------------------------------------------- > >>This sf.net email is sponsored by: viaVerio will pay you up to > >>$1,000 for every account that you consolidate with us. > >>http://ad.doubleclick.net/clk;4749864;7604308;v? > >>http://www.viaverio.com/consolidator/osdn.cfm > >>_______________________________________________ > >>hibernate-devel mailing list > >>hib...@li... > >>https://lists.sourceforge.net/lists/listinfo/hibernate-devel > >> > >> > > > > > > > >------------------------------------------------------- > >This sf.net email is sponsored by: viaVerio will pay you up to > >$1,000 for every account that you consolidate with us. > >http://ad.doubleclick.net/clk;4749864;7604308;v? > >http://www.viaverio.com/consolidator/osdn.cfm > >_______________________________________________ > >hibernate-devel mailing list > >hib...@li... > >https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > > > > > > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: viaVerio will pay you up to > $1,000 for every account that you consolidate with us. > http://ad.doubleclick.net/clk;4749864;7604308;v? > http://www.viaverio.com/consolidator/osdn.cfm > _______________________________________________ > hibernate-devel mailing list > hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > > ------------------------------------------------------- > This sf.net emial is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en > _______________________________________________ > hibernate-devel mailing list > hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > |
From: Yaron Z. <ya...@id...> - 2002-10-23 10:08:24
|
Hi, Is this feature going to get into 1.1.6 ? Thanks, Yaron. -----Original Message----- From: Christoph Sturm [mailto:ch...@sc...] Sent: Thursday, October 17, 2002 9:57 PM To: Gavin King Cc: hibernate list Subject: Re: [Hibernate] dynamic schema update I will look at it when I have the time. I think they dont have alter table support too. If they have a nice structure we could add the stuff we need and submit it back. There are so many java persistency frameworks, and it would be nice if they would share some code that is common to them all, and sql generation is for sure. greetz chris Gavin King wrote: >Hmmmm the only trouble with this is that they support *way* fewer platforms >than us. > >Also, can you tell if there is support for subqueries in the API? > >----- Original Message ----- >From: "Gavin King" <ga...@ap...> >To: "Christoph Sturm" <ch...@sc...> >Cc: "hibernate list" <hib...@li...> >Sent: Friday, October 18, 2002 5:34 AM >Subject: Re: [Hibernate] dynamic schema update > > > > >>Yeah, funny, I looked at this project about a year ago in the early stages >>of Hibernate but it didnt seem far enough advanced to actually use. >> >> >Looking > > >>pretty good now. >> >>----- Original Message ----- >>From: "Christoph Sturm" <ch...@sc...> >>To: "Gavin King" <ga...@ap...> >>Cc: "hibernate list" <hib...@li...> >>Sent: Friday, October 18, 2002 5:30 AM >>Subject: Re: [Hibernate] dynamic schema update >> >> >> >> >>>Gavin King wrote: >>> >>> >>> >>>>>I have now added a Schemaupdater to hibernate. At the moment it only >>>>>adds missing colums to the schema, and creates tables if they are >>>>>missing. I have testet it with sql server. All the rest of hibernate >>>>>seems to still work, so I could commit it to cvs if you have no >>>>> >>>>> >>>>> >>>>> >>>>objections. >>>> >>>>Cool!! Go Ahead and check it in. Sounds like something that will really >>>>be used by a lot of users.... >>>> >>>> >>>> >>>> >>>> >>>> >>>>>Something we should really do in the near future is create classes for >>>>>all the sql statements. I think we should think of our database >>>>> >>>>> >dialects > > >>>>>as SQL-Statementfactory-factories, then we could deal with different >>>>> >>>>> >sql > > >>>>>dialects much easier. >>>>> >>>>> >>>>> >>>>> >>>>Yes, you are absolutely right (and I have mentioned this before). The >>>> >>>> >>main >> >> >>>>remaining piece of bad-design is the lack of a proper OO model of SQL. >>>>If you want to have a go at writing an elegant heirarchy of classes for >>>>this, >>>>it would be _highly_ appreciated. >>>> >>>> >>>> >>>> >>>i wonder if >>>http://sourceforge.net/projects/crossdb/ would be an option. Just saw >>>that the ojb guys use this. >>> >>>regards >>> chris >>> >>> >> >>------------------------------------------------------- >>This sf.net email is sponsored by: viaVerio will pay you up to >>$1,000 for every account that you consolidate with us. >>http://ad.doubleclick.net/clk;4749864;7604308;v? >>http://www.viaverio.com/consolidator/osdn.cfm >>_______________________________________________ >>hibernate-devel mailing list >>hib...@li... >>https://lists.sourceforge.net/lists/listinfo/hibernate-devel >> >> > > > >------------------------------------------------------- >This sf.net email is sponsored by: viaVerio will pay you up to >$1,000 for every account that you consolidate with us. >http://ad.doubleclick.net/clk;4749864;7604308;v? >http://www.viaverio.com/consolidator/osdn.cfm >_______________________________________________ >hibernate-devel mailing list >hib...@li... >https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > > > ------------------------------------------------------- This sf.net email is sponsored by: viaVerio will pay you up to $1,000 for every account that you consolidate with us. http://ad.doubleclick.net/clk;4749864;7604308;v? http://www.viaverio.com/consolidator/osdn.cfm _______________________________________________ hibernate-devel mailing list hib...@li... https://lists.sourceforge.net/lists/listinfo/hibernate-devel |
From: Gavin K. <ga...@ap...> - 2002-10-23 03:43:29
|
Yep, I know. I will get it fixed real soon..... ----- Original Message ----- From: "Mark Woon" <mor...@SM...> To: "Hibernate Mailing List" <hib...@li...> Sent: Wednesday, October 23, 2002 8:12 AM Subject: [Hibernate] CVS is broken > > > > ------------------------------------------------------- > This sf.net emial is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ad.doubleclick.net/clk;4699841;7576301;v?http://www.sun.com/javavote > _______________________________________________ > hibernate-devel mailing list > hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel |
From: Mark W. <mor...@SM...> - 2002-10-23 03:22:07
|
Well... Adding CLOB support turned out to be much more complicated than I thought. I'm not sure how much of my problems are due to the fact thatI'm using Oracle vs. some other db but: 1) I was under the impression that I could just use my own Clob implementation and call PreparedStatement.setClob. Unfortunately, this is not the case. Oracle JDBC will throw a ClassCastException if it doesn't get an oracle.sql.CLOB. Furthermore, to save a CLOB for the first time, the row needs to be created first, then you need to select the Clob object, and then finally you can write the data out to the db. This means that CLOB support is not going to be as simple as providing a ClobType. 2) In order to write to a Clob, it must first be retrieved with a SELECT ... FOR UPDATE statement, which means that we'd have to fool around with locking when writing Clobs. 3) I considered just using character streams, but then found that Oracle does not support this with their thin JDBC drivers. They have a nice warning about data corruption if you don't use their OCI driver instead. The above applies to BLOBs as well. I think I'm giving up on this for now, unless anyone has an idea about how to get around these problems. -Mark |
From: Mark W. <mor...@SM...> - 2002-10-22 22:12:39
|
From: Max R. A. <ma...@eo...> - 2002-10-22 16:37:12
|
Hi! While trying to make a build environment that given some ErWin generated SQL generates, some hbm.xml and from this generate java sources for both class and proxy interfaces I have found some shortcomings in the current codegenerator :( 1. Codegenerator does not support composite-id's 2. You cannot generate code from hbm.xml and then generate proxies without manual intervention ;( 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 :) What I would suggest is to have the codegenerators and proxygenerator use the metadata package instead of parsing the xml manually! What good is that for ? well 2 things: 1. Code for parsing hbm.xml will only be written ONCE! 2. By having the codegenerator and proxygenerator use metadata one is sure they are using the same information to generate the code...(as they do not do know :) Secondly, I would suggest some kind of custom-attribute stuff like the one provided in OJB. Then one could agument the definitions in hbm.xml with custom attributes which could be used for codegeneration and other generic purposes runtime (if it was available via the metadata package) So, e.g. extend ClassMetaData and CollectionMetaData with getCustomAttribute(key) which could be set by a e.g. <customattrib key="relinfo" value="weak reference"/> embedded in <class> tags. Anyone already doing this ? :) /max |
From: Ampie B. <amp...@mw...> - 2002-10-22 08:52:57
|
I did some superficial tests under JDK1.4. With invocation handling that just delegates to the actual implementation, it seems that CG is slower than Proxies initially. But after several thousand invocations CG gets substantially (20+%) faster than Proxies. My theory is that CG somehow benefits more from hot spot compilation. I might be missing something, so if you want to see my tests I'll send it to the list. P.S. sorry for barging in on the list like this. I only realised it is actually the devel list after it was too late. -----Original Message----- From: hib...@li... [mailto:hib...@li...]On Behalf Of Gavin King Sent: 22 October 2002 06:41 To: Viktor Szathmary Cc: hib...@li... Subject: Re: [Hibernate] Ohhh this looks cool > i think the difference would be marginal, as dynamic proxies also use > class generation behind the scenes... I have a suspicion it will be slightly slower with CGLIB, actually. ------------------------------------------------------- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v? http://www.sun.com/javavote _______________________________________________ hibernate-devel mailing list hib...@li... https://lists.sourceforge.net/lists/listinfo/hibernate-devel |
From: Gavin K. <ga...@ap...> - 2002-10-22 05:19:51
|
Ah. I ran into a limitation. CGLIB is great for our proxies, as long as the persistent classes are not polymorphic. But in the case of a class with subclasses, we don't know the concrete class at proxy-creation time. And theres no way for the proxy to be an instance of both Bar and Baz if Bar and Baz are two possible subclasses of foo. Thats a Java language limitation. So we end up needing the proxy interfaces after all, in that case. Oh well, it still helps for non-polymorphic associations! |
From: Gavin K. <ga...@ap...> - 2002-10-22 04:42:34
|
> Cglib is brilliant for simply wrapping method calls. As I understand its > main feature is generating classes dynamically by merging two classes that > were not in any way related at compile time. The generated class looks like > a subclass of the original, so you don't need 1000 interfaces as with > proxies. And another advantage is that you don't need to break identity equals the way you do with java.lang.reflect.Proxy. (The Proxy is always a different object.) Very, very nice. I wish I knew about this before! |
From: Gavin K. <ga...@ap...> - 2002-10-22 04:39:19
|
> i think the difference would be marginal, as dynamic proxies also use > class generation behind the scenes... I have a suspicion it will be slightly slower with CGLIB, actually. |
From: Gavin K. <ga...@ap...> - 2002-10-22 04:37:56
|
I'm currently re-implementing the Proxy feature using CGLIB, as an alternative to JDK proxies. Its turning out really nicely. I have always been so frustrated by the inability to intercept calls to an object if the object doesn't implement an interface. CGLIB seems to solve that problem nicely. > Cglib is brilliant for simply wrapping method calls. As I understand its > main feature is generating classes dynamically by merging two classes that > were not in any way related at compile time. The generated class looks like > a subclass of the original, so you don't need 1000 interfaces as with > proxies. > > If access to the internal state of an object always goes through its > accessors, this tool could be ideal for lazy fetching of state just before a > getter or setter method call, maybe through fetch groups. > > 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. > > Ampie > > -----Original Message----- > From: hib...@li... > [mailto:hib...@li...]On Behalf Of > phr...@im... > Sent: 22 October 2002 00:55 > To: Gavin King; hib...@li... > Subject: Re: [Hibernate] Ohhh this looks cool > > > hi, > > On Tue, 22 Oct 2002 04:34:54 +1000, "Gavin King" <ga...@ap...> > said: > > Can we use this to do lazy initialization of objects without the need for > > proxy interfaces? > > wouldn't you have to do this at class loading time then? that is: how > would you make your generated look like the original one? with interfaces > it's doable at runtime, as long as the client refers to the generated > class through the interface... > > viktor > -- > > phr...@im... > > -- > http://fastmail.fm - Access your email with Outlook or over the web > > > ------------------------------------------------------- > This sf.net emial is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ad.doubleclick.net/clk;4699841;7576298;k?http://www.sun.com/javavote > _______________________________________________ > hibernate-devel mailing list > hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > > > ------------------------------------------------------- > This sf.net emial is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ad.doubleclick.net/clk;4699841;7576298;k?http://www.sun.com/javavote > _______________________________________________ > hibernate-devel mailing list > hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel |
From: Viktor S. <phr...@im...> - 2002-10-22 04:31:57
|
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 proxies also use class generation behind the scenes... v. |
From: Ampie B. <amp...@mw...> - 2002-10-22 04:18:00
|
hi, Cglib is brilliant for simply wrapping method calls. As I understand its main feature is generating classes dynamically by merging two classes that were not in any way related at compile time. The generated class looks like a subclass of the original, so you don't need 1000 interfaces as with proxies. If access to the internal state of an object always goes through its accessors, this tool could be ideal for lazy fetching of state just before a getter or setter method call, maybe through fetch groups. 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. Ampie -----Original Message----- From: hib...@li... [mailto:hib...@li...]On Behalf Of phr...@im... Sent: 22 October 2002 00:55 To: Gavin King; hib...@li... Subject: Re: [Hibernate] Ohhh this looks cool hi, On Tue, 22 Oct 2002 04:34:54 +1000, "Gavin King" <ga...@ap...> said: > Can we use this to do lazy initialization of objects without the need for > proxy interfaces? wouldn't you have to do this at class loading time then? that is: how would you make your generated look like the original one? with interfaces it's doable at runtime, as long as the client refers to the generated class through the interface... viktor -- phr...@im... -- http://fastmail.fm - Access your email with Outlook or over the web ------------------------------------------------------- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576298;k?http://www.sun.com/javavote _______________________________________________ hibernate-devel mailing list hib...@li... https://lists.sourceforge.net/lists/listinfo/hibernate-devel |
From: <phr...@im...> - 2002-10-21 22:55:14
|
hi, On Tue, 22 Oct 2002 04:34:54 +1000, "Gavin King" <ga...@ap...> said: > Can we use this to do lazy initialization of objects without the need for > proxy interfaces? wouldn't you have to do this at class loading time then? that is: how would you make your generated look like the original one? with interfaces it's doable at runtime, as long as the client refers to the generated class through the interface... viktor -- phr...@im... -- http://fastmail.fm - Access your email with Outlook or over the web |
From: Gavin K. <ga...@ap...> - 2002-10-21 18:35:04
|
Can we use this to do lazy initialization of objects without the need for proxy interfaces? http://cglib.sourceforge.net/ Looks very promising..... |
From: Brad C. <bra...@wo...> - 2002-10-21 10:01:57
|
quoted identifiers are not supported at the moment. i believe it is on the todo list. brad ----- Original Message ----- From: "User Forth" <fo...@ms...> To: <hib...@li...> Sent: Monday, October 21, 2002 6:14 PM Subject: [Hibernate] How to quote identifiers in generated SQL with " ? > Sometimes we may use column or table names that conflict with SQL keywords. > By enclosing those identifiers in double-quotes could solve problem. > I can't find any setting to make Hibernate to do this. > Is there any way to achieve that? > Thanks. > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > hibernate-devel mailing list > hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > |
From: <fo...@ms...> - 2002-10-21 08:10:25
|
Sometimes we may use column or table names that conflict with SQL keywords. By enclosing those identifiers in double-quotes could solve problem. I can't find any setting to make Hibernate to do this. Is there any way to achieve that? Thanks. |
From: joe p. <pi...@ya...> - 2002-10-20 22:36:12
|
Thought some here might be interested in this. It's a new, Hibernate based, publically available web application. It's not an enterprise application, but a "personal server" application, for exploiting personal broadband connections. it can be found here: http://www.pixory.org __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ |
From: Gavin K. <ga...@ap...> - 2002-10-20 18:11:01
|
Andrea, I can't reproduce this. Can you please send me more detailed info. > On Sunday 20 October 2002 11:49, Gavin King wrote: > > The reason it doesn't check list!=null is that find() is never supposed to > > return a null list.... How did you make that happen?? Do you have a > > stacktrace, etc? > > Well, I've already patched my local hybernate... anyway, can you > try session.delete("from x in class MyClass") where the associated > table is empty? This is how I generated this error, hope you can > reproduce it... ah, I'm working on a PostgreSQL db. > Andrea |
From: Gavin K. <ga...@ap...> - 2002-10-20 18:08:38
|
> Apparently everything works fine, but from the postgres log I see that: > - the deleted object has not been deleted, but its parent_id column > has been nullified (if I recall properly you said this, because only > the update has been cascaded, not a delete, so I may expect this); > - the other columns are updated and their id is modified... why this > extra work? The other columns are unchanged... By the way, the reason for this behaviour is that we no longer have access to the collection snapshot in the new Session. So the functionality is actually quite optimal. |
From: Gavin K. <ga...@ap...> - 2002-10-20 17:56:54
|
> Apparently everything works fine, but from the postgres log I see that: > - the deleted object has not been deleted, but its parent_id column > has been nullified (if I recall properly you said this, because only > the update has been cascaded, not a delete, so I may expect this); Yep, you should expect this. Its discussed in the documentation. > - the other columns are updated and their id is modified... why this > extra work? The other columns are unchanged... Because, when using update(), we have to "remove" the existing collection and recreate it. (In other situations, we can get away with just changing the modified rows.) > Should I like to avoid this extra work by directly manipulating the childs, > what should I do? Should I go for a bidirectional association as in the > example provided by the documentation? Yup. Bidirectional associations are generally more efficient in Hibernate (as long as you use readonly="true"). > Ah, BTW, what's the meaning of cascade="all" read-only="true" ? If the > collection is read-only what kind of cascading is operated? readonly="true" does not change the semantics of cascade. |
From: Andrea A. <aa...@li...> - 2002-10-20 17:30:39
|
Hi everybody, I'm trying to figure out how collections work, since what I see=20 makes me a little confused. Let's say that I have the following mapping (the example in the documentation, one to many=20 monodirectional association, slightly modified): <hibernate-mapping> <class name=3D"eg.Parent"> <id name=3D"id"> <generator class=3D"sequence"/> </id> <set role=3D"children" cascade=3D"all"> <key type=3D"long" column=3D"parent_id"/> <one-to-many class=3D"eg.Child"/> </set> </class> <class name=3D"eg.Child"> <id name=3D"id"> <generator class=3D"sequence"/> </id> <property name=3D"name"/> </class> </hibernate-mapping> Now, let's say that I open a session, read a parent and the associated childrens, close the session, remote the objects thru RMI (I use SessionBeans, in fact). On the client side I=20 delete a child from the collection, then pass the parent to the server side for update: I open a session, issue and "update". Apparently everything works fine, but from the postgres log I see that: =2D the deleted object has not been deleted, but its parent_id column has been nullified (if I recall properly you said this, because only the update has been cascaded, not a delete, so I may expect this); =2D the other columns are updated and their id is modified... why this extra work? The other columns are unchanged... Should I like to avoid this extra work by directly manipulating the childs, what should I do? Should I go for a bidirectional association as in the example provided by the documentation? Ah, BTW, what's the meaning of cascade=3D"all" read-only=3D"true" ? If the= =20 collection is read-only what kind of cascading is operated? Andrea |
From: Andrea A. <aa...@li...> - 2002-10-20 11:01:49
|
On Sunday 20 October 2002 11:49, Gavin King wrote: > The reason it doesn't check list!=3Dnull is that find() is never supposed= to > return a null list.... How did you make that happen?? Do you have a > stacktrace, etc? Well, I've already patched my local hybernate... anyway, can you try session.delete("from x in class MyClass") where the associated table is empty? This is how I generated this error, hope you can=20 reproduce it... ah, I'm working on a PostgreSQL db. Andrea |
From: Gavin K. <ga...@ap...> - 2002-10-20 10:49:37
|
> >Use of java.sql.Clob class is non-useful, since it provides no way to > >update the data. > > > > In JDBC 3.0, which is in JDK 1.4, Clob has setAsciiStream, > setCharacterStream, setString and truncate methods to update data. Is > it reasonable to require that people use JDBC 3.0 if they want full > support for CLOB's? If we do this, we'd also have to provide an > implementation of java.sql.Clob. Ah. Cool. I wasn't aware of that. > What do you think about adding a hibernate.use_clobs property to decide > between the two? If true, then Clobs are used. Otherwise, use char[] > instead. Nah, it would be better to provide two different ClobTypes with different names, if necessary. Properties are best for specifying behaviour thats transparent to appplication code. |