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: Paul H. <pau...@gm...> - 2007-02-28 13:30:11
|
I am trying to duplicate an HQL join example from the manual as below in my code but am having no luck http://www.hibernate.org/hib_docs/v3/reference/en/html/queryhql.html select cust from Product prod, Store store inner join store.customers cust where prod.name = 'widget' and store.location.name in ( 'Melbourne', 'Sydney' ) and prod = all elements(cust.currentOrder.lineItems) and am trying to do similar, and select data from both tables only for a specific country. I have two tables DATATYPE : hjid bigint NOT NULL ( KEY ) hjtype character varying(255) NOT NULL country character varying(255) comments character varying(255) programme character varying(255) REVENUECOSTSFUELTYPE : hjid bigint NOT NULL hjtype character varying(255) NOT NULL type character varying(255) comments character varying(255) value real samplingparams bigint datatype_revenuecostsfuel_hjid bigint ( FOREIGN_KEY FOR DATATYPE TABLE) datatype_revenuecostsfuel_hjindex grouping bigint My query is 'select data from generated.DATA data inner join generated.REVENUECOSTSFUEL sub where data.hjid = sub.datatype_revenuecostsfuel_hjid and data.COUNTRY where data.COUNTRY = :countryid and data.hjid =spain i get : <java.lang.Exception: java.lang.Exception: java.lang.Exception: Error looking for existing data : org.hibernate.hql.ast.QuerySyntaxException: unexpected token: where near line 1, column 150 [select data from generated.DATA data inner join generated.REVENUECOSTSFUEL sub where data.hjid = sub.datatype_revenuecostsfuel_hjid and data.COUNTRY where data.COUNTRY = :countryid] revenue_costs_fuel TEST2,revenue_costs_fuel revenue_costs_fuel> I would be glad for any assistance Thanks Paul. |
From: Hamed S. <ham...@gm...> - 2007-02-23 21:55:32
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Hamed has Tagged you! :)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <table border="0" cellspacing="0" cellpadding="0" width="539"> <tr> <td colspan="3"><img src="http://static.tagged.com/images/invite_crnrrs_topLong2.gif" width="539" height="11" alt="" border="0"></td> </tr> <tr> <td align="left" bgcolor="#c9c9c9" width="1"></td> <td width="537" style="font-size: 30px; color: #000000; text-align: center; font-family: Arial, Helvetica, sans-serif; font-weight: bold; height: 194px; vertical-align:top;"> <div style="float: left; padding: 0 10px 0 10px; text-align:center; width:110px; font-size: 13px;"> <div style="padding: 0 0 10px 0;"><a href="http://www.taggedmail.com/welcome.html?conn=1smqv8mzt&ect=33qrif5&tId=130062&fid=7159f1efc1501d81"><img src="http://www.taggedmail.com/imgld.php?img=logo_email_small.gif&ect=33qrif5" width="98" height="35" alt="" border="0"></a></div> <img src="http://www.taggedmail.com/imgsrv.php?uid=18429802" /><br /> <div style="padding:5px 0 0 0;">Hamed S, 22</div> <div style="font-size: 12px; color: red;"></div> </div> <div style="float: left; width:405px;"> <div style="font-size:20px; margin:0; padding:20px 0 15px 0;">Is Hamed S your friend?</div> <a href="http://www.taggedmail.com/welcome.html?conn=1smqv8mzt&ect=33qrif5&tId=130062&fid=7159f1efc1501d81" style="text-decoration:none;"><img src="http://static.tagged.com/images/btn_email_yes3.gif" alt="" border="0" /> <img src="http://static.tagged.com/images/btn_email_no3.gif" alt="" border="0" /></a> <div style="font-size:12px; font-weight:bold; margin:0; padding:15px 0 0 0;">Hamed S has added you as a friend on Tagged.</div> <div style="font-size:12px; font-weight:bold; padding:5px 0 0 0;">Please respond or Hamed may think you said no :(</div> </div> </td> <td align="right" bgcolor="#c9c9c9" width="1"></td> </tr> <tr> <td colspan="3"><img src="http://static.tagged.com/images/invite_crnrs_bottomShort2.gif" width="539" height="11" alt="" border="0"></td> </tr> <tr> <td colspan="3"> <div style="font-size: 12px; font-color: black; font-family: Arial, Helvetica, sans-serif; padding: 10px 0 0 0; text-align: center;"> <a style="color: black" href="http://www.taggedmail.com/no_more.html?unsem=hibernate-devel%40lists.sourceforge.net&tId=130062&fid=7159f1efc1501d81">Click here</a> to unsubscribe from Tagged, P.O. Box 193152 San Francisco, CA 94119-3152 </div> </td> </tr> </table> </body> </html> <!-- 7b5hn --> |
From: Dheeraj D. <dhe...@da...> - 2006-12-01 05:03:29
|
Good Morning Sir, Now, I m using hibernate for my project. At that time I have handled all the cases including association. But some problem in genralization of classes. I m so confused how to make mapping and java file in hibernate for my this case . The case is : ----------------------------------------------------------------------------------------------------------------------- Table A : id bigint primary key, aName varchar(255) Table B: id bigint primary key -- This key is the foreign key of Table A (id column of Table A), bName varchar(255) Table C: id bigint primary key - -- This key is the foreign key of Table B (id column of Table B),, cName varchar(255) ----------------------------------------------------------------------------------------------------------------------- The java files for these both cases generalize in this way : Class A { } Class B extends A { } Class C extends B { } ------------------------------------------------------------------------------------------------------------------------- So , Could you suggest me , how i can make my hibernate mapping files and java files for these two cases. Pls, reply to me as early as possible for this mail. Thnks , Dheeraj Dhiman |
From: Dheeraj D. <dhe...@da...> - 2006-12-01 05:01:28
|
Good Morning Sir, Now, I m using hibernate for my project. At that time I have handled all the cases including association. But some problem in genralization of classes. I m so confused how to make mapping and java file in hibernate for my this case . The case is : ----------------------------------------------------------------------------------------------------------------------- Table A : id bigint primary key, aName varchar(255) Table B: id bigint primary key, aId primary key -- This key is the foreign key of Table A (id column of Table A) bName varchar(255) Table C: id bigint primary key, aId primary key -- This key is the foreign key of Table A (id column of Table A) bId primary key -- This key is the foreign key of Table B (id column of Table B) bName varchar(255) ----------------------------------------------------------------------------------------------------------------------- The java files for these both cases generalize in this way : Class A { } Class B extends A { } Class C extends B { } ------------------------------------------------------------------------------------------------------------------------- So , Could you suggest me , how i can make my hibernate mapping files and java files for these two cases. Pls, reply to me as early as possible for this mail. Thnks , Dheeraj Dhiman |
From: Man-Chi L. <man...@gm...> - 2006-11-30 20:10:25
|
I am trying to use hibernate.criterion.Example to find a User model by Example this following code will only get all users which username="myuser" & enabled="false" NOT all user regardless enabled = true or false bcos when invokes 'new User("myuser")' , user.enabled will be initialized by constructor as false by default. any solution ? pls advise! ===User.java=== public class User { String username ; Boolean enabled; public User(String username) { this.username = username; } //get() & set() for username & enabled //.. } ===UserDao.java=== public List getUsers(User user) { //using spring's template return results = getHibernateTemplate().findByExample( Example.create(new User("myuser"))); } ===Another Try but still failed === return results = getHibernateTemplate().findByExample( Example.create(new User("myuser")).excludeProperty("enabled")); |
From: Emmanuel B. <emm...@hi...> - 2006-11-30 15:25:44
|
Yes it is relevant. Thanks for the fix. Max Rydahl Andersen wrote: > > I don't recall, but is our own javax.persistence src copy still relevant ? > > Just thinking if it has any value to fix stuff like the ones below ? > (shuffled javadoc) > > /max > > ------- Forwarded message ------- > From: hib...@li... > To: hib...@li... > Cc: > Subject: [hibernate-commits] Hibernate SVN: r10885 - > branches/Branch_3_2/HibernateExt/ejb-api/src/javax/persistence > Date: Thu, 30 Nov 2006 11:03:50 +0100 > > Author: max...@jb... > Date: 2006-11-30 05:03:47 -0500 (Thu, 30 Nov 2006) > New Revision: 10885 > > Modified: > > branches/Branch_3_2/HibernateExt/ejb-api/src/javax/persistence/AttributeOverride.java > Log: > javadoc shuffled for name/column > > Modified: > branches/Branch_3_2/HibernateExt/ejb-api/src/javax/persistence/AttributeOverride.java > =================================================================== > --- > branches/Branch_3_2/HibernateExt/ejb-api/src/javax/persistence/AttributeOverride.java > 2006-11-30 > 08:05:05 UTC (rev 10884) > +++ > branches/Branch_3_2/HibernateExt/ejb-api/src/javax/persistence/AttributeOverride.java > 2006-11-30 > 10:03:47 UTC (rev 10885) > @@ -23,12 +23,12 @@ > @Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) > public @interface AttributeOverride { > /** > - * The column that is being mapped to the persistent attribute > + * The name of the property whose mapping is being overridden if > property-based access is being > + * used, or the name of the field if field-based access is used. > */ > String name(); > /** > - * The name of the property whose mapping is being overridden if > property-based access is being > - * used, or the name of the field if field-based access is used. > + * The column that is being mapped to the persistent attribute > */ > Column column(); > } > > _______________________________________________ > hibernate-commits mailing list > hib...@li... > https://lists.jboss.org/mailman/listinfo/hibernate-commits > > > > -- > -- > Max Rydahl Andersen > callto://max.rydahl.andersen > > Hibernate > ma...@hi... > http://hibernate.org > > JBoss a division of Red Hat > max...@jb... > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> > _______________________________________________ > hibernate-devel mailing list > hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > |
From: Max R. A. <max...@jb...> - 2006-11-30 10:37:53
|
I don't recall, but is our own javax.persistence src copy still relevant= ? Just thinking if it has any value to fix stuff like the ones below ? = (shuffled javadoc) /max ------- Forwarded message ------- From: hib...@li... To: hib...@li... Cc: Subject: [hibernate-commits] Hibernate SVN: r10885 - = branches/Branch_3_2/HibernateExt/ejb-api/src/javax/persistence Date: Thu, 30 Nov 2006 11:03:50 +0100 Author: max...@jb... Date: 2006-11-30 05:03:47 -0500 (Thu, 30 Nov 2006) New Revision: 10885 Modified: branches/Branch_3_2/HibernateExt/ejb-api/src/javax/persistence/Attri= buteOverride.java Log: javadoc shuffled for name/column Modified: = branches/Branch_3_2/HibernateExt/ejb-api/src/javax/persistence/Attribute= Override.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- = branches/Branch_3_2/HibernateExt/ejb-api/src/javax/persistence/Attribute= Override.java 2006-11-30 = 08:05:05 UTC (rev 10884) +++ branches/Branch_3_2/HibernateExt/ejb-api/src/javax/persistence/Attri= buteOverride.java 2006-11-30 = 10:03:47 UTC (rev 10885) @@ -23,12 +23,12 @@ @Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) public @interface AttributeOverride { /** - * The column that is being mapped to the persistent attribute + * The name of the property whose mapping is being overridden if = property-based access is being + * used, or the name of the field if field-based access is used. */ String name(); /** - * The name of the property whose mapping is being overridden if = property-based access is being - * used, or the name of the field if field-based access is used. + * The column that is being mapped to the persistent attribute */ Column column(); } _______________________________________________ hibernate-commits mailing list hib...@li... https://lists.jboss.org/mailman/listinfo/hibernate-commits -- = -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate ma...@hi... http://hibernate.org JBoss a division of Red Hat max...@jb... |
From: Murat C. A. <mc...@gm...> - 2006-11-01 08:51:14
|
Is it possible to use hibernate over multiple schemas but with single SessionFactory ?. We have searched the forum but all solutions require configuring multiple sessionFactory instances. We dont want to go that way because of memory limitations. Any pointers to implement such behaviour will be appreciated. Regards; Murat Can |
From: Max R. A. <max...@jb...> - 2006-10-29 21:13:12
|
yes, for some scenario's this make sense. But do remember that what the db optimize's in this case is that you actually queried these objects (either via a query or lazy loading them) even without you actually using the data. A "dynamic mapping generation using heuristics" could detect if these objects were actually used and wether it would actually be necessary to do the query or not. So yes, the heuristics should not find out what the optimal joins are at the db-level, but what access pattern that should be used at the object/query level. /max > Hi Max and ppl in the hibernate dev list, > > Talking about the dynamic generation of mappings, one of my Colleague has > found out that there is no real performance improvement by doing this > since > the underlying database will anyway to the necessary optimisations at the > physical layer: Say for example there is this query which does multiple > joins between tables and say that this query is used heavilly by the > application,,, then the database will identify this and aggregate the > necessary tables so that the query will not be involved in any join > operations. > > appreciate you guys feedback/comments on this > > thanks > mahen > > > On 10/19/06, Max Rydahl Andersen <max...@jb...> wrote: >> >> Hi Mahen, >> >> some have previously talked about utilizing the statistics and aop to >> figure >> out more optimal ways of querying/mapping so it is not a new idea; just >> that >> noone have yet had the time to investigate into it. >> >> I would assume classic database query optimizing techniques and program >> flow analysis >> is applicable in this area so if you know those then simply learn >> hibernate and >> apply them ;) >> >> /max >> >> > Hi All, >> > >> > I am a postgraduate student from Imperial College, London,, >> > >> > I am doing a research on performace optimisations in the peristence >> > layer of >> > a web >> > application... >> > >> > just want to get your ideas on likely improvements that can be done in >> > hibernate to >> > optimise the performance,, >> > these changes should be changes to the hibernate core... >> > >> > yeah,, i have seen various articles on how to increase performace in >> > hibernate and all,, but >> > what i want to know is that what are the areas that i can explore in >> > order >> > to increase >> > the performance more..at the code level >> > >> > i am hoping to try out various optmisations and evaluate the likely >> > impact >> > of each >> > optimisation and stuff like that and would like to contribute to >> > hibernate >> > with my >> > findings,,, >> > >> > greatly appreciate some pointers from you all,, >> > >> > mainly i am concerned about the following disadvantage of hibernate: >> > >> > >> > "Developers must know enough information about data usage at compile >> > time to >> > be able to optimise queries and choose the appropriate >> object-relational >> > mappings" >> > so therefore, i am thinking about the repercussions and advantages of >> > having dynamically generated mapping files based on heuristics of the >> > usage >> > pattern of the data,, in other words dynamically deciding on the >> mapping >> > based on what queries are used more frquently in a system,, >> > >> > would appreciate some feedback from you all >> > >> > Thanks >> > Mahen >> >> >> >> -- >> -- >> Max Rydahl Andersen >> callto://max.rydahl.andersen >> >> Hibernate >> ma...@hi... >> http://hibernate.org >> >> JBoss a division of Red Hat >> max...@jb... >> -- -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate ma...@hi... http://hibernate.org JBoss a division of Red Hat max...@jb... |
From: Mahen P. <ma...@gm...> - 2006-10-29 13:13:16
|
Hi Max and ppl in the hibernate dev list, Talking about the dynamic generation of mappings, one of my Colleague has found out that there is no real performance improvement by doing this since the underlying database will anyway to the necessary optimisations at the physical layer: Say for example there is this query which does multiple joins between tables and say that this query is used heavilly by the application,,, then the database will identify this and aggregate the necessary tables so that the query will not be involved in any join operations. appreciate you guys feedback/comments on this thanks mahen On 10/19/06, Max Rydahl Andersen <max...@jb...> wrote: > > Hi Mahen, > > some have previously talked about utilizing the statistics and aop to > figure > out more optimal ways of querying/mapping so it is not a new idea; just > that > noone have yet had the time to investigate into it. > > I would assume classic database query optimizing techniques and program > flow analysis > is applicable in this area so if you know those then simply learn > hibernate and > apply them ;) > > /max > > > Hi All, > > > > I am a postgraduate student from Imperial College, London,, > > > > I am doing a research on performace optimisations in the peristence > > layer of > > a web > > application... > > > > just want to get your ideas on likely improvements that can be done in > > hibernate to > > optimise the performance,, > > these changes should be changes to the hibernate core... > > > > yeah,, i have seen various articles on how to increase performace in > > hibernate and all,, but > > what i want to know is that what are the areas that i can explore in > > order > > to increase > > the performance more..at the code level > > > > i am hoping to try out various optmisations and evaluate the likely > > impact > > of each > > optimisation and stuff like that and would like to contribute to > > hibernate > > with my > > findings,,, > > > > greatly appreciate some pointers from you all,, > > > > mainly i am concerned about the following disadvantage of hibernate: > > > > > > "Developers must know enough information about data usage at compile > > time to > > be able to optimise queries and choose the appropriate object-relational > > mappings" > > so therefore, i am thinking about the repercussions and advantages of > > having dynamically generated mapping files based on heuristics of the > > usage > > pattern of the data,, in other words dynamically deciding on the mapping > > based on what queries are used more frquently in a system,, > > > > would appreciate some feedback from you all > > > > Thanks > > Mahen > > > > -- > -- > Max Rydahl Andersen > callto://max.rydahl.andersen > > Hibernate > ma...@hi... > http://hibernate.org > > JBoss a division of Red Hat > max...@jb... > |
From: Darryl M. <dar...@ne...> - 2006-10-27 12:59:08
|
As part of release engineering, are the junit tests run in at least one configuration (JVM, Java version, JDBC driver, SQL server implementation) to prove they pass ? If so what configuration is used ? Many of the tests fail for my configuration, Success rate 79.56%, is this to be expected ? My configuration: JVM: Sun 1.5.0 x86_64/Linux JDBC Driver: mysql-connector-java-3.1.12-bin.jar SQL Server: MySQL 4.1.15 -- Darryl L. Miles |
From: Mahen P. <ma...@gm...> - 2006-10-20 19:17:32
|
hi, Appreciate if someone can give me some pointers on where i can find a Hibernate Developers guide, as in some document(s) which will help in developing and analysing the hibernate codebase. Thanks Mahen ---------- Forwarded message ---------- From: Max Rydahl Andersen <max...@jb...> Date: Oct 19, 2006 9:24 AM Subject: Re: [Hibernate] hibernate performace improvements and dynamic mappings generation using heuristics To: Mahen Perera <ma...@gm...>, hib...@li... Hi Mahen, some have previously talked about utilizing the statistics and aop to figure out more optimal ways of querying/mapping so it is not a new idea; just that noone have yet had the time to investigate into it. I would assume classic database query optimizing techniques and program flow analysis is applicable in this area so if you know those then simply learn hibernate and apply them ;) /max > Hi All, > > I am a postgraduate student from Imperial College, London,, > > I am doing a research on performace optimisations in the peristence > layer of > a web > application... > > just want to get your ideas on likely improvements that can be done in > hibernate to > optimise the performance,, > these changes should be changes to the hibernate core... > > yeah,, i have seen various articles on how to increase performace in > hibernate and all,, but > what i want to know is that what are the areas that i can explore in > order > to increase > the performance more..at the code level > > i am hoping to try out various optmisations and evaluate the likely > impact > of each > optimisation and stuff like that and would like to contribute to > hibernate > with my > findings,,, > > greatly appreciate some pointers from you all,, > > mainly i am concerned about the following disadvantage of hibernate: > > > "Developers must know enough information about data usage at compile > time to > be able to optimise queries and choose the appropriate object-relational > mappings" > so therefore, i am thinking about the repercussions and advantages of > having dynamically generated mapping files based on heuristics of the > usage > pattern of the data,, in other words dynamically deciding on the mapping > based on what queries are used more frquently in a system,, > > would appreciate some feedback from you all > > Thanks > Mahen -- -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate ma...@hi... http://hibernate.org JBoss a division of Red Hat max...@jb... |
From: Garvey, P. M \(GE C. Fin\) <pau...@ge...> - 2006-10-20 16:47:47
|
All: Has anyone used commons-dbcp, c3p0 or Proxool connection pooling tools in their appfuse applications or any application in general? Which is the best of these tool in terms of production ready, ease of use and configuation?=20 Are there any other connection pooling tools that you would recommend? -Paul=20 |
From: Max R. A. <max...@jb...> - 2006-10-19 08:24:46
|
Hi Mahen, some have previously talked about utilizing the statistics and aop to figure out more optimal ways of querying/mapping so it is not a new idea; just that noone have yet had the time to investigate into it. I would assume classic database query optimizing techniques and program flow analysis is applicable in this area so if you know those then simply learn hibernate and apply them ;) /max > Hi All, > > I am a postgraduate student from Imperial College, London,, > > I am doing a research on performace optimisations in the peristence > layer of > a web > application... > > just want to get your ideas on likely improvements that can be done in > hibernate to > optimise the performance,, > these changes should be changes to the hibernate core... > > yeah,, i have seen various articles on how to increase performace in > hibernate and all,, but > what i want to know is that what are the areas that i can explore in > order > to increase > the performance more..at the code level > > i am hoping to try out various optmisations and evaluate the likely > impact > of each > optimisation and stuff like that and would like to contribute to > hibernate > with my > findings,,, > > greatly appreciate some pointers from you all,, > > mainly i am concerned about the following disadvantage of hibernate: > > > "Developers must know enough information about data usage at compile > time to > be able to optimise queries and choose the appropriate object-relational > mappings" > so therefore, i am thinking about the repercussions and advantages of > having dynamically generated mapping files based on heuristics of the > usage > pattern of the data,, in other words dynamically deciding on the mapping > based on what queries are used more frquently in a system,, > > would appreciate some feedback from you all > > Thanks > Mahen -- -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate ma...@hi... http://hibernate.org JBoss a division of Red Hat max...@jb... |
From: Mahen P. <ma...@gm...> - 2006-10-18 23:42:16
|
Hi All, I am a postgraduate student from Imperial College, London,, I am doing a research on performace optimisations in the peristence layer of a web application... just want to get your ideas on likely improvements that can be done in hibernate to optimise the performance,, these changes should be changes to the hibernate core... yeah,, i have seen various articles on how to increase performace in hibernate and all,, but what i want to know is that what are the areas that i can explore in order to increase the performance more..at the code level i am hoping to try out various optmisations and evaluate the likely impact of each optimisation and stuff like that and would like to contribute to hibernate with my findings,,, greatly appreciate some pointers from you all,, mainly i am concerned about the following disadvantage of hibernate: "Developers must know enough information about data usage at compile time to be able to optimise queries and choose the appropriate object-relational mappings" so therefore, i am thinking about the repercussions and advantages of having dynamically generated mapping files based on heuristics of the usage pattern of the data,, in other words dynamically deciding on the mapping based on what queries are used more frquently in a system,, would appreciate some feedback from you all Thanks Mahen |
From: Josh M. <jos...@gm...> - 2006-09-27 14:28:36
|
> For truly efficient clustering of extended persistence contexts in the > context of Seam or EJB3, we need a way to propagate unflushed > changesets. What we need is an SPI like this: > > Serializable changeset = session1.getChangeSet(); > > session2.applyChangeSet(changeset); > > where session2 is an empty session, or perhaps even a session with some > of the same entities as session1. The only state that needs to be sent > in the changeset is new entities, unflushed updates to entities and > deletions of entities. > > Steve, WDYT? +1 even if my names not Steve. Seems like the same infrastructure would also be usable in implementing a remote client session. (Discussed in various places.) ~Josh. |
From: Gavin K. <gav...@jb...> - 2006-09-23 13:27:04
|
For truly efficient clustering of extended persistence contexts in the context of Seam or EJB3, we need a way to propagate unflushed changesets. What we need is an SPI like this: Serializable changeset =3D session1.getChangeSet(); session2.applyChangeSet(changeset); where session2 is an empty session, or perhaps even a session with some of the same entities as session1. The only state that needs to be sent in the changeset is new entities, unflushed updates to entities and deletions of entities. Steve, WDYT? |
From: Emmanuel B. <emm...@hi...> - 2006-09-16 21:03:11
|
I'm pleased to announce the release 3.2.0.CR2 of Hibernate Annotations and Hibernate EntityManager. These releases are mainly bug fixes oriented. The next release will focus on documentation, last formal step to the GA, I expect very few bug fixes in between. Some noticeable informations: - compatible with Core 3.2.0.CR4 (and expected to be compatible with 3.2.0.GA) - version embedded with JBoss EJB3 RC9 - support for bags with primary keys (aka idbag): @CollectionId For people yelling ;-) on the inability to eagerly load more than one bag, you know have several solutions: using a true list (@IndexColumn), overriding the fetching strategy (@Fetch), using a bag with primary key (@collectionId) - Hibernate Lucene has been updated to use Lucene 2.0.0 (Sylvain Vieujot) and now support a configurable Directory provider mechanism (including File System and in-memory built-in) - a Chinese translation of the Hibernate Annotations documentation (Xiaogang Cao) - Full JavaDocs for ejb3-persistence http://www.hibernate.org/hib_docs/ejb3-api/ - tons of bug fixes Check the release notes for more informations https://sourceforge.net/project/shownotes.php?group_id=40712&release_id=447926 https://sourceforge.net/project/shownotes.php?group_id=40712&release_id=447927 |
From: Rachel K. <Rac...@fb...> - 2006-08-24 19:26:16
|
I will be out of the office starting 08/24/2006 and will not return un= til 08/25/2006. I will respond to your message when I return. __________________________________________ The information contained in this message may be privileged and confidential and protected from disclosure. If you are not the intended= recipient of this message, you are hereby notified that any disseminati= on, distribution, or copying of this communication is strictly prohibited. = If you have received this communication in error, please notify us immedia= tely by replying to the message, and please delete it from your computer.= |
From: Max R. A. <max...@jb...> - 2006-08-24 05:48:28
|
that move just broke *all* of the code generation :( /max ------- Forwarded message ------- From: hib...@li... To: hib...@li... Cc: Subject: [hibernate-commits] Hibernate SVN: r10319 - = branches/Branch_3_2/Hibernate3/src/org/hibernate/mapping Date: Wed, 23 Aug 2006 23:57:11 +0200 Author: epbernard Date: 2006-08-23 17:57:10 -0400 (Wed, 23 Aug 2006) New Revision: 10319 Modified: branches/Branch_3_2/Hibernate3/src/org/hibernate/mapping/PersistentC= lass.java Log: ANN-381 add identifierProperty to getProperty and getRecursiveProperty Modified: = branches/Branch_3_2/Hibernate3/src/org/hibernate/mapping/PersistentClass= .java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- = branches/Branch_3_2/Hibernate3/src/org/hibernate/mapping/PersistentClass= .java 2006-08-23 = 13:36:35 UTC (rev 10318) +++ branches/Branch_3_2/Hibernate3/src/org/hibernate/mapping/PersistentC= lass.java 2006-08-23 = 21:57:10 UTC (rev 10319) @@ -349,7 +349,14 @@ while ( st.hasMoreElements() ) { String element =3D (String) st.nextElement(); if (property =3D=3D null) { - property =3D getProperty( element, iter ); + Property identifierProperty =3D getIdentifierProperty(); + if ( identifierProperty !=3D null + && identifierProperty.getName().equals( StringHelper.root(elemen= t) = ) ) { + property =3D identifierProperty; + } + else { + property =3D getProperty( element, iter ); + } } else { //flat recursive algorithm @@ -379,7 +386,15 @@ public Property getProperty(String propertyName) throws MappingExcept= ion = { Iterator iter =3D getPropertyClosureIterator(); - return getProperty( propertyName, iter ); + Property identifierProperty =3D getIdentifierProperty(); + if ( identifierProperty !=3D null + && = identifierProperty.getName().equals( StringHelper.root(propertyName) ) + ) { + return identifierProperty; + } + else { + return getProperty( propertyName, iter ); + } } abstract public int getOptimisticLockMode(); _______________________________________________ hibernate-commits mailing list hib...@li... https://lists.jboss.org/mailman/listinfo/hibernate-commits -- = -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate ma...@hi... http://hibernate.org JBoss a division of Red Hat max...@jb... |
From: Max R. A. <max...@jb...> - 2006-08-18 12:56:13
|
When these cascades of user questions mails are sent to all on the mailing list everybody just gets to delete them. so, go to user forum. This mail is for development of hibernate, not usa= ge. /max > Hi, > > I have defined a many to many relationship between two classes, viz. > Event and Person (defined in a separate database table person_event). > The code of these classes is listed at the end. Now, suppose I want to= > delete a person, so all its related associations with events must also= > get deleted from the person_event table. In other words, I want cascad= e > ON DELETE. > > Lets consider a scenario. > - The "events" table contains three events identified by id=3D1, 2, 3= . > - The "person" table contains two persons identified by id=3D4, 5. > - The "person_event' table containing associations like 1-4, 2-4, 3-5 > > Now, suppose I delete event 1 using Hibernate.delete(), then not only > does it delete event1, and association person_event1-4, but also the > person4 and subsequently, person_event2-4 and event2. > > I dont understand why this is happening. Could someone please explain > where I am committing a mistake. > > Thanks in advance > > - Abhishek > > Event and Person Class > > package test; > > import java.io.Serializable; > import java.util.Date; > import java.util.HashSet; > import java.util.Set; > > import javax.persistence.CascadeType; > import javax.persistence.Entity; > import javax.persistence.GeneratedValue; > import javax.persistence.GenerationType; > import javax.persistence.Id; > import javax.persistence.ManyToMany; > import javax.persistence.Table; > import javax.persistence.Temporal; > import javax.persistence.TemporalType; > > @Entity > @Table(name=3D"events") > public class Event implements Serializable { > private Long id; > private String title; > private Date date; > > public Event() { > } > > @Id @GeneratedValue(strategy=3DGenerationType.AUTO) > public Long getId() { > return id; > } > > private void setId(Long id) { > this.id =3D id; > } > > @Temporal(TemporalType.TIMESTAMP) > public Date getDate() { > return date; > } > > public void setDate(Date date) { > this.date =3D date; > } > > public String getTitle() { > return title; > } > > public void setTitle(String title) { > this.title =3D title; > } > private Set<Person> participants =3D new HashSet<Person>(); > > @ManyToMany( > cascade=3D{CascadeType.ALL}, > mappedBy=3D"events", > targetEntity=3DPerson.class > ) > public Set<Person> getParticipants() { > return participants; > } > > public void setParticipants(Set<Person> participants) { > this.participants =3D participants; > } > } > > package test; > > import java.io.Serializable; > import java.util.HashSet; > import java.util.Set; > > import javax.persistence.CascadeType; > import javax.persistence.Entity; > import javax.persistence.GeneratedValue; > import javax.persistence.GenerationType; > import javax.persistence.Id; > import javax.persistence.JoinColumn; > import javax.persistence.JoinTable; > import javax.persistence.ManyToMany; > import javax.persistence.Table; > > @Entity > @Table(name=3D"person") > public class Person implements Serializable { > private Long person_id; > private int age; > private String firstname; > private String lastname; > > public Person() {} > > @Id @GeneratedValue(strategy=3DGenerationType.AUTO) > public Long getId() { > return person_id; > } > > public void setId(Long id) { > this.person_id =3D id; > } > > public int getAge() { > return age; > } > > public void setAge(int age) { > this.age =3D age; > } > > public String getFirstname() { > return firstname; > } > > public void setFirstname(String firstname) { > this.firstname =3D firstname; > } > > public String getLastname() { > return lastname; > } > > public void setLastname(String lastname) { > this.lastname =3D lastname; > } > > private Set<Event> events =3D new HashSet<Event>(); > > @ManyToMany( > targetEntity=3DEvent.class, > cascade=3D{CascadeType.ALL} > ) > @JoinTable( > name=3D"person_event", > joinColumns=3D{@JoinColumn(name=3D"person_id")}, > inverseJoinColumns=3D{@JoinColumn(name=3D"event_id")}) > // Defensive, convenience methods > protected Set<Event> getEvents() { > return events; > } > > protected void setEvents(Set<Event> events) { > this.events =3D events; > } > > public void addToEvent(Event event) { > this.getEvents().add(event); > event.getParticipants().add(this); > } > > public void removeFromEvent(Event event) { > this.getEvents().remove(event); > event.getParticipants().remove(this); > } > } > > > ----------------------------------------------------------------------= --- > Using Tomcat but need to do more? Need to support web services, securi= ty? > Get stuff done quickly with pre-integrated technology to make your job= = > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache = > Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&da= t=3D121642 > _______________________________________________ > hibernate-devel mailing list > hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel -- = -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate ma...@hi... http://hibernate.org JBoss a division of Red Hat max...@jb... |
From: Abhishek V. <abh...@dr...> - 2006-08-18 12:16:30
|
Hi, I have defined a many to many relationship between two classes, viz. Event and Person (defined in a separate database table person_event). The code of these classes is listed at the end. Now, suppose I want to delete a person, so all its related associations with events must also get deleted from the person_event table. In other words, I want cascade ON DELETE. Lets consider a scenario. - The "events" table contains three events identified by id=1, 2, 3. - The "person" table contains two persons identified by id=4, 5. - The "person_event' table containing associations like 1-4, 2-4, 3-5 Now, suppose I delete event 1 using Hibernate.delete(), then not only does it delete event1, and association person_event1-4, but also the person4 and subsequently, person_event2-4 and event2. I dont understand why this is happening. Could someone please explain where I am committing a mistake. Thanks in advance - Abhishek Event and Person Class package test; import java.io.Serializable; import java.util.Date; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.ManyToMany; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; @Entity @Table(name="events") public class Event implements Serializable { private Long id; private String title; private Date date; public Event() { } @Id @GeneratedValue(strategy=GenerationType.AUTO) public Long getId() { return id; } private void setId(Long id) { this.id = id; } @Temporal(TemporalType.TIMESTAMP) public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } private Set<Person> participants = new HashSet<Person>(); @ManyToMany( cascade={CascadeType.ALL}, mappedBy="events", targetEntity=Person.class ) public Set<Person> getParticipants() { return participants; } public void setParticipants(Set<Person> participants) { this.participants = participants; } } package test; import java.io.Serializable; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.JoinTable; import javax.persistence.ManyToMany; import javax.persistence.Table; @Entity @Table(name="person") public class Person implements Serializable { private Long person_id; private int age; private String firstname; private String lastname; public Person() {} @Id @GeneratedValue(strategy=GenerationType.AUTO) public Long getId() { return person_id; } public void setId(Long id) { this.person_id = id; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } public String getFirstname() { return firstname; } public void setFirstname(String firstname) { this.firstname = firstname; } public String getLastname() { return lastname; } public void setLastname(String lastname) { this.lastname = lastname; } private Set<Event> events = new HashSet<Event>(); @ManyToMany( targetEntity=Event.class, cascade={CascadeType.ALL} ) @JoinTable( name="person_event", joinColumns={@JoinColumn(name="person_id")}, inverseJoinColumns={@JoinColumn(name="event_id")}) // Defensive, convenience methods protected Set<Event> getEvents() { return events; } protected void setEvents(Set<Event> events) { this.events = events; } public void addToEvent(Event event) { this.getEvents().add(event); event.getParticipants().add(this); } public void removeFromEvent(Event event) { this.getEvents().remove(event); event.getParticipants().remove(this); } } |
From: Emmanuel B. <emm...@hi...> - 2006-08-16 16:33:07
|
you need to go to the user forum http://forum.hibernate.org for such help. This is the Hibernate development mailing list zqzuk wrote: > Hi, i m using Hibernate, Spring and Tapestry and PostgreSQL in this software. > the software includes extensive database opertaions incl query, update, > insert, but no db creation or such. > > atm all functions are working properly, but a serious problem is that after > a buntch of method calls my memory is running out. i checked system status > and i noticed there are almost 70 pgadmin.exe threads! and the figure is > rising as more db operations are performed. it seems that each time a > query is made, a separate thread is created, and none is released. > > this is a severe problem as it means my software can not run properly.... > is it because i did wrong with configuration? or theres serious problem in > my code? but with hibernate and spring the db connection is handled by the > program by itself isnt it? > > how can i solve this problem please, thanks so much! > > > |
From: zqzuk <ziq...@ho...> - 2006-08-16 16:23:36
|
it just cross my mind that is it because of this line of config in my applicationContext.xml: <property name="maxOpenPreparedStatements"> <value>100</value> </property> if so, i suppose i only need to reduce the value? what would be the proper value please? thanks. zqzuk wrote: > > Hi, i m using Hibernate, Spring and Tapestry and PostgreSQL in this > software. the software includes extensive database opertaions incl query, > update, insert, but no db creation or such. > > atm all functions are working properly, but a serious problem is that > after a buntch of method calls my memory is running out. i checked system > status and i noticed there are almost 70 pgadmin.exe threads! and the > figure is rising as more db operations are performed. it seems that > each time a query is made, a separate thread is created, and none is > released. > > this is a severe problem as it means my software can not run properly.... > is it because i did wrong with configuration? or theres serious problem > in my code? but with hibernate and spring the db connection is handled by > the program by itself isnt it? > > how can i solve this problem please, thanks so much! > > > -- View this message in context: http://www.nabble.com/pgadmin-eats-up-memory-tf2116332.html#a5835715 Sent from the Hibernate forum at Nabble.com. |
From: zqzuk <ziq...@ho...> - 2006-08-16 16:19:19
|
Hi, i m using Hibernate, Spring and Tapestry and PostgreSQL in this software. the software includes extensive database opertaions incl query, update, insert, but no db creation or such. atm all functions are working properly, but a serious problem is that after a buntch of method calls my memory is running out. i checked system status and i noticed there are almost 70 pgadmin.exe threads! and the figure is rising as more db operations are performed. it seems that each time a query is made, a separate thread is created, and none is released. this is a severe problem as it means my software can not run properly.... is it because i did wrong with configuration? or theres serious problem in my code? but with hibernate and spring the db connection is handled by the program by itself isnt it? how can i solve this problem please, thanks so much! -- View this message in context: http://www.nabble.com/pgadmin-eats-up-memory-tf2116332.html#a5835638 Sent from the Hibernate forum at Nabble.com. |