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: Viktor S. <phr...@im...> - 2002-11-27 03:44:16
|
hi, i came across UberMQ on sf.net (http://sourceforge.net/projects/ubermq), it seems to be a nice jms implementation, but what puzzled me was this quote: "Several open-source projects have already embraced UberMQ as their messaging platform of choice, including Hibernate" (see http://www.ubermq.com/products.html)... i can't see where hibernate needs a message queue implementation... would someone enlighten me? :) best regards, viktor |
From: Christian B. <chr...@bl...> - 2002-11-25 21:10:02
|
I just commited the following files: * New documentation generation instructions, including scripts * Hibernate style configuration for PDF and XSL * Updated HTML and PDF documentation, using the new scripts and the Wiki CSS Gavin, redirecting the site is your part. If everythings working out fine, I will cleanup the documentation directory a bit more and remove the old pages and unused images and so on... BTW: The DocBook toolchain is really very painful... -- Christian Bauer tu...@in... |
From: Juozas B. <ba...@ce...> - 2002-11-25 18:05:47
|
It is no standard way to for this trick, It depends on RDBMS implementation. It is possible upload tab separated text file to server and execute native SQL on postgersql like this: "COPY mytable FROM filename " http://www.postgresql.org/idocs/index.php?sql-copy.html > Hey! > > The stuff you mention sounds cool, and I already thought about that, but to > my knowledge there's no java api that supports stuff like that. If you know > a api that supports such functionality, please tell me, that would be really > great! > > regards > chris > ----- Original Message ----- > From: "Juozas Baliuka" <ba...@ce...> > To: "Christoph Sturm" <ch...@mc...>; "Gavin King" > <ga...@ap...> > Cc: "hibernate list" <hib...@li...> > Sent: Monday, November 25, 2002 6:03 PM > Subject: Re: [Hibernate] Re: slow performance on flush > > > > > > It is better to use some "native" API like "COPY" for long running import, > > some RDBM's support imports without constaint > > checks, SQL parsing .... , and sometimes "long running import" becomes > very > > "short". > > > > ----- Original Message ----- > > From: "Christoph Sturm" <ch...@mc...> > > To: "Gavin King" <ga...@ap...> > > Cc: "hibernate list" <hib...@li...> > > Sent: Monday, November 25, 2002 3:27 PM > > Subject: [Hibernate] Re: slow performance on flush > > > > > > I have a really long running import, and I want to write the records to > the > > db as they come in. Is it save to clear the entries Map after a flush? Or > > would you recommend a different approach? > > > > > > ----- Original Message ----- > > From: Gavin King > > To: Christoph Sturm > > Cc: hibernate list > > Sent: Monday, November 25, 2002 2:23 PM > > Subject: Re: slow performance on flush > > > > > > Yup, all entries are kept in the session cache until you close the > > session. Why would you use this kind of code?? Just flush() once at the > end > > (outside the loop). > > ----- Original Message ----- > > From: Christoph Sturm > > To: hib...@li... ; Gavin King > > Sent: Tuesday, November 26, 2002 12:18 AM > > Subject: slow performance on flush > > > > > > Hi all! > > > > I'm trying to increase the performance of this pseudocode: > > > > for (j=1;j<100;j++) > > { > > for (i=1;i<100;i++) > > { > > session.save(class) > > } > > session.flush(); > > session.connection().commit(); > > } > > > > > > Now my problem is that flush doesnt take a constant time, but every > > invocation of flush takes more time than the last one, the more I flush > the > > slower it gets. To me it looks like hibernate keeps the references to the > > flushed objects in the entries map, and doesnt remove them. Is there > > anything I can do about it? > > > > regards > > chris > > > > > > > > > > > > ------------------------------------------------------- > > 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: Christoph S. <ch...@mc...> - 2002-11-25 17:44:17
|
Hey! The stuff you mention sounds cool, and I already thought about that, but to my knowledge there's no java api that supports stuff like that. If you know a api that supports such functionality, please tell me, that would be really great! regards chris ----- Original Message ----- From: "Juozas Baliuka" <ba...@ce...> To: "Christoph Sturm" <ch...@mc...>; "Gavin King" <ga...@ap...> Cc: "hibernate list" <hib...@li...> Sent: Monday, November 25, 2002 6:03 PM Subject: Re: [Hibernate] Re: slow performance on flush > > It is better to use some "native" API like "COPY" for long running import, > some RDBM's support imports without constaint > checks, SQL parsing .... , and sometimes "long running import" becomes very > "short". > > ----- Original Message ----- > From: "Christoph Sturm" <ch...@mc...> > To: "Gavin King" <ga...@ap...> > Cc: "hibernate list" <hib...@li...> > Sent: Monday, November 25, 2002 3:27 PM > Subject: [Hibernate] Re: slow performance on flush > > > I have a really long running import, and I want to write the records to the > db as they come in. Is it save to clear the entries Map after a flush? Or > would you recommend a different approach? > > > ----- Original Message ----- > From: Gavin King > To: Christoph Sturm > Cc: hibernate list > Sent: Monday, November 25, 2002 2:23 PM > Subject: Re: slow performance on flush > > > Yup, all entries are kept in the session cache until you close the > session. Why would you use this kind of code?? Just flush() once at the end > (outside the loop). > ----- Original Message ----- > From: Christoph Sturm > To: hib...@li... ; Gavin King > Sent: Tuesday, November 26, 2002 12:18 AM > Subject: slow performance on flush > > > Hi all! > > I'm trying to increase the performance of this pseudocode: > > for (j=1;j<100;j++) > { > for (i=1;i<100;i++) > { > session.save(class) > } > session.flush(); > session.connection().commit(); > } > > > Now my problem is that flush doesnt take a constant time, but every > invocation of flush takes more time than the last one, the more I flush the > slower it gets. To me it looks like hibernate keeps the references to the > flushed objects in the entries map, and doesnt remove them. Is there > anything I can do about it? > > regards > chris > > > > > > ------------------------------------------------------- > 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: Juozas B. <ba...@ce...> - 2002-11-25 17:04:22
|
It is better to use some "native" API like "COPY" for long running import, some RDBM's support imports without constaint checks, SQL parsing .... , and sometimes "long running import" becomes very "short". ----- Original Message ----- From: "Christoph Sturm" <ch...@mc...> To: "Gavin King" <ga...@ap...> Cc: "hibernate list" <hib...@li...> Sent: Monday, November 25, 2002 3:27 PM Subject: [Hibernate] Re: slow performance on flush I have a really long running import, and I want to write the records to the db as they come in. Is it save to clear the entries Map after a flush? Or would you recommend a different approach? ----- Original Message ----- From: Gavin King To: Christoph Sturm Cc: hibernate list Sent: Monday, November 25, 2002 2:23 PM Subject: Re: slow performance on flush Yup, all entries are kept in the session cache until you close the session. Why would you use this kind of code?? Just flush() once at the end (outside the loop). ----- Original Message ----- From: Christoph Sturm To: hib...@li... ; Gavin King Sent: Tuesday, November 26, 2002 12:18 AM Subject: slow performance on flush Hi all! I'm trying to increase the performance of this pseudocode: for (j=1;j<100;j++) { for (i=1;i<100;i++) { session.save(class) } session.flush(); session.connection().commit(); } Now my problem is that flush doesnt take a constant time, but every invocation of flush takes more time than the last one, the more I flush the slower it gets. To me it looks like hibernate keeps the references to the flushed objects in the entries map, and doesnt remove them. Is there anything I can do about it? regards chris |
From: Gavin K. <ga...@ap...> - 2002-11-25 14:53:52
|
Yick! <property name="ownernumber" type="string" > <column name="ownernumber" length="50" not-null="true" index="index_name"/> </property> but it looks like the property isn't really called "ownernumber"; perhaps you meant "ownerNumber"? ----- Original Message ----- From: "Jochen Rebhan" <joc...@si...> To: <hib...@li...>; "Gavin King" <ga...@ap...> Sent: Tuesday, November 26, 2002 1:48 AM Subject: Re: [Hibernate] How to create an index on normal property element ? > Thanks for your help, but exactly in the line with the colum tag (corresponds to line 15) the schema generator shows an error: > > <property name="ownernumber"> > <column name="ownernumber" type="string" length="50" not-null="true" index="index_name"/> > </property> > > > Any ideas ??? > > Kind regards > Jochen Rebhan > joc...@si... > > > > > > My message from the Schema generator: > > Arguments: > processing mapping for class: buddy.database.Meetings > processing mapping for class: buddy.database.Friend > property "ownernumber" in class Friend is missing a type attribute > Copying 2 files to C:\java\buddySrv\src > Compiling 2 source files to C:\java\buddySrv\web\WEB-INF\classes > (cirrus.hibernate.helpers.XMLHelper$1.error:38) - Error parsing XML: src/buddy/database/Friend.hbm.xml(15) > org.xml.sax.SAXParseException: Attribute "type" must be declared for element type "column". > at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) > at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > at org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(Unk nown Source) > at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source) > at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source) > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno wn Source) > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) > at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) > at cirrus.hibernate.helpers.XMLHelper.parseInputSource(XMLHelper.java:48) > at cirrus.hibernate.helpers.XMLHelper.parseFile(XMLHelper.java:22) > at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:68) > at cirrus.hibernate.tools.SchemaExport.main(SchemaExport.java:203) > (cirrus.hibernate.helpers.XMLHelper$1.error:38) - Error parsing XML: src/buddy/database/Friend.hbm.xml(15) > org.xml.sax.SAXParseException: Attribute "lenth" must be declared for element type "column". > at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) > at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > at org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(Unk nown Source) > at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source) > at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source) > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno wn Source) > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) > at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) > at cirrus.hibernate.helpers.XMLHelper.parseInputSource(XMLHelper.java:48) > at cirrus.hibernate.helpers.XMLHelper.parseFile(XMLHelper.java:22) > at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:68) > at cirrus.hibernate.tools.SchemaExport.main(SchemaExport.java:203) > (cirrus.hibernate.impl.DatastoreImpl.store:106) - Could not compile the mapping document > cirrus.hibernate.MappingException: Could not find a getter for ownernumber in class buddy.database.Friend > at cirrus.hibernate.helpers.ReflectHelper.getGetterMethod(ReflectHelper.java:11 9) > at cirrus.hibernate.helpers.ReflectHelper.reflectedPropertyType(ReflectHelper.j ava:163) > at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:180) > at cirrus.hibernate.map.PersistentClass.propertiesFromXML(PersistentClass.java: 97) > at cirrus.hibernate.map.RootClass.<init>(RootClass.java:230) > at cirrus.hibernate.map.Root.<init>(Root.java:145) > at cirrus.hibernate.impl.DatastoreImpl.store(DatastoreImpl.java:103) > at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:68) > at cirrus.hibernate.tools.SchemaExport.main(SchemaExport.java:203) > rethrown as > cirrus.hibernate.MappingException: Problem trying to set property type by reflection: Could not find a getter for ownernumber in class buddy.database.Friend > at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:191) > at cirrus.hibernate.map.PersistentClass.propertiesFromXML(PersistentClass.java: 97) > at cirrus.hibernate.map.RootClass.<init>(RootClass.java:230) > at cirrus.hibernate.map.Root.<init>(Root.java:145) > at cirrus.hibernate.impl.DatastoreImpl.store(DatastoreImpl.java:103) > at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:68) > at cirrus.hibernate.tools.SchemaExport.main(SchemaExport.java:203) > Caused by: cirrus.hibernate.MappingException: Could not find a getter for ownernumber in class buddy.database.Friend > at cirrus.hibernate.helpers.ReflectHelper.getGetterMethod(ReflectHelper.java:11 9) > at cirrus.hibernate.helpers.ReflectHelper.reflectedPropertyType(ReflectHelper.j ava:163) > at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:180) > ... 6 more > (cirrus.hibernate.impl.DatastoreImpl.storeFile:71) - Could not configure datastore from file: src/buddy/database/Friend.hbm.xml > Error creating schema Problem trying to set property type by reflection: Could not find a getter for ownernumber in class buddy.database.Friend > cirrus.hibernate.MappingException: Could not find a getter for ownernumber in class buddy.database.Friend > cirrus.hibernate.MappingException: Could not find a getter for ownernumber in class buddy.database.Friend > at cirrus.hibernate.helpers.ReflectHelper.getGetterMethod(ReflectHelper.java:11 9) > at cirrus.hibernate.helpers.ReflectHelper.getGetterMethod(ReflectHelper.java:11 9) > at cirrus.hibernate.helpers.ReflectHelper.reflectedPropertyType(ReflectHelper.j ava:163) > at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:180) > at cirrus.hibernate.helpers.ReflectHelper.reflectedPropertyType(ReflectHelper.j ava:163) > at cirrus.hibernate.map.PersistentClass.propertiesFromXML(PersistentClass.java: 97) > at cirrus.hibernate.map.RootClass.<init>(RootClass.java:230) > at cirrus.hibernate.map.Root.<init>(Root.java:145) > at cirrus.hibernate.impl.DatastoreImpl.store(DatastoreImpl.java:103) > at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:68) > at cirrus.hibernate.tools.SchemaExport.main(SchemaExport.java:203) > at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:180) > rethrown as cirrus.hibernate.MappingException: Problem trying to set property type by reflection: Could not find a getter for ownernumber in class buddy.database.Friend > at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:191) > at cirrus.hibernate.map.PersistentClass.propertiesFromXML(PersistentClass.java: 97) > at cirrus.hibernate.map.RootClass.<init>(RootClass.java:230) > at cirrus.hibernate.map.PersistentClass.propertiesFromXML(PersistentClass.java: 97) > at cirrus.hibernate.map.Root.<init>(Root.java:145) > at cirrus.hibernate.impl.DatastoreImpl.store(DatastoreImpl.java:103) > at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:68) > at cirrus.hibernate.map.RootClass.<init>(RootClass.java:230) > at cirrus.hibernate.tools.SchemaExport.main(SchemaExport.java:203) > Caused by: cirrus.hibernate.MappingException: Could not find a getter for ownernumber in class buddy.database.Friend > at cirrus.hibernate.helpers.ReflectHelper.getGetterMethod(ReflectHelper.java:11 9) > at cirrus.hibernate.helpers.ReflectHelper.reflectedPropertyType(ReflectHelper.j ava:163) > at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:180) > ... 6 more > at cirrus.hibernate.map.Root.<init>(Root.java:145) > rethrown as cirrus.hibernate.MappingException: Problem trying to set property type by reflection: Could not find a getter for ownernumber in class buddy.database.Friend > at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:72) > at cirrus.hibernate.impl.DatastoreImpl.store(DatastoreImpl.java:103) > at cirrus.hibernate.tools.SchemaExport.main(SchemaExport.java:203) > Caused by: cirrus.hibernate.MappingException: Problem trying to set property type by reflection: Could not find a getter for ownernumber in class buddy.database.Friend > at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:191) > at cirrus.hibernate.map.PersistentClass.propertiesFromXML(PersistentClass.java: 97) > at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:68) > at cirrus.hibernate.tools.SchemaExport.main(SchemaExport.java:203) > rethrown as > at cirrus.hibernate.map.RootClass.<init>(RootClass.java:230) > at cirrus.hibernate.map.Root.<init>(Root.java:145) > at cirrus.hibernate.impl.DatastoreImpl.store(DatastoreImpl.java:103) > at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:68) > cirrus.hibernate.MappingException: Problem trying to set property type by reflection: Could not find a getter for ownernumber in class buddy.database.Friend > at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:191) > ... 1 more > Caused by: cirrus.hibernate.MappingException: Could not find a getter for ownernumber in class buddy.database.Friend > at cirrus.hibernate.map.PersistentClass.propertiesFromXML(PersistentClass.java: 97) > at cirrus.hibernate.map.RootClass.<init>(RootClass.java:230) > at cirrus.hibernate.helpers.ReflectHelper.getGetterMethod(ReflectHelper.java:11 9) > at cirrus.hibernate.map.Root.<init>(Root.java:145) > at cirrus.hibernate.impl.DatastoreImpl.store(DatastoreImpl.java:103) > at cirrus.hibernate.helpers.ReflectHelper.reflectedPropertyType(ReflectHelper.j ava:163) > at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:180) > ... 6 more > at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:68) > at cirrus.hibernate.tools.SchemaExport.main(SchemaExport.java:203) > Caused by: cirrus.hibernate.MappingException: Could not find a getter for ownernumber in class buddy.database.Friend > at cirrus.hibernate.helpers.ReflectHelper.getGetterMethod(ReflectHelper.java:11 9) > at cirrus.hibernate.helpers.ReflectHelper.reflectedPropertyType(ReflectHelper.j ava:163) > at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:180) > ... 6 more > > > > > 25-11-2002 14:10:18, "Gavin King" <ga...@ap...> wrote: > > >Since everyone should be in the process of upgrading to version 1.2 ;) you > >should now be using hibernate-mapping-1.1.dtd... > > > ><property name="ownernumber"> > > <column name="ownernumber" type="string" length="50" not-null="true" > >index="index_name"/> > ></property> > > > >----- Original Message ----- > >From: "Jochen Rebhan" <joc...@si...> > >To: <hib...@li...> > >Sent: Tuesday, November 26, 2002 1:07 AM > >Subject: [Hibernate] How to create an index on normal property element ? > > > > > >> > >> I have the following hibernate-mapping definition for "Friend" : > >> > >> <class name="buddy.database.Friend" table="friends"> > >> <id column="friends_key" name="key" type="long"> > >> <generator class="native"/> > >> </id> > >> <set role="meetings" lazy="true" table="participants"> > >> <key type="long" column="friends_key"/> > >> <many-to-many class="buddy.database.Meetings" > >column="meetings_key"/> > >> </set> > >> <property name="name" column="name" type="string" length="50"/> > >> <property name="number" column="number" type="string" length="50" > >not-null="true"/> > >> > >> > >> <!-- I want to index this element: ownernumber to speed up some queries > > --> > >> <property name="ownernumber" column="ownernumber" type="string" > >length="50" not-null="true"/> > >> > >> > >> <property name="active" column="active" type="boolean" length="50" > >/> > >> > >> </class> > >> > >> > >> > >> > >> In Mysql I have to add this line manually (after running the Schema > >generator) : > >> > >> create index ownerindex on friends (ownernumber); > >> > >> > >> > >> As I see in the DTD there is no way to specify an index for a normal > >property, am I wrong ? > >> > >> > >> > >> <!ELEMENT property (column*)> > >> <!ATTLIST property name CDATA #REQUIRED> > >> <!ATTLIST property type CDATA #IMPLIED> > >> <!ATTLIST property column CDATA #IMPLIED> > >> <!ATTLIST property length CDATA #IMPLIED> > >> <!ATTLIST property not-null (true|false) "false"> > >> <!ATTLIST property unique (true|false) "false"> > >> > >> > >> Thanks for any help, Hibernate is great ! > >> > >> > >> Jochen Rebhan > >> joc...@si... > >> > >> > >> > >> > >> > >> > >> > >> > >> ------------------------------------------------------- > >> 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 > > > > > > > > > > ------------------------------------------------------- > 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: Jochen R. <joc...@si...> - 2002-11-25 14:45:02
|
Thanks for your help, but exactly in the line with the colum tag (corresponds to line 15) the schema generator shows an error: <property name="ownernumber"> <column name="ownernumber" type="string" length="50" not-null="true" index="index_name"/> </property> Any ideas ??? Kind regards Jochen Rebhan joc...@si... My message from the Schema generator: Arguments: processing mapping for class: buddy.database.Meetings processing mapping for class: buddy.database.Friend property "ownernumber" in class Friend is missing a type attribute Copying 2 files to C:\java\buddySrv\src Compiling 2 source files to C:\java\buddySrv\web\WEB-INF\classes (cirrus.hibernate.helpers.XMLHelper$1.error:38) - Error parsing XML: src/buddy/database/Friend.hbm.xml(15) org.xml.sax.SAXParseException: Attribute "type" must be declared for element type "column". at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at cirrus.hibernate.helpers.XMLHelper.parseInputSource(XMLHelper.java:48) at cirrus.hibernate.helpers.XMLHelper.parseFile(XMLHelper.java:22) at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:68) at cirrus.hibernate.tools.SchemaExport.main(SchemaExport.java:203) (cirrus.hibernate.helpers.XMLHelper$1.error:38) - Error parsing XML: src/buddy/database/Friend.hbm.xml(15) org.xml.sax.SAXParseException: Attribute "lenth" must be declared for element type "column". at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at cirrus.hibernate.helpers.XMLHelper.parseInputSource(XMLHelper.java:48) at cirrus.hibernate.helpers.XMLHelper.parseFile(XMLHelper.java:22) at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:68) at cirrus.hibernate.tools.SchemaExport.main(SchemaExport.java:203) (cirrus.hibernate.impl.DatastoreImpl.store:106) - Could not compile the mapping document cirrus.hibernate.MappingException: Could not find a getter for ownernumber in class buddy.database.Friend at cirrus.hibernate.helpers.ReflectHelper.getGetterMethod(ReflectHelper.java:119) at cirrus.hibernate.helpers.ReflectHelper.reflectedPropertyType(ReflectHelper.java:163) at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:180) at cirrus.hibernate.map.PersistentClass.propertiesFromXML(PersistentClass.java:97) at cirrus.hibernate.map.RootClass.<init>(RootClass.java:230) at cirrus.hibernate.map.Root.<init>(Root.java:145) at cirrus.hibernate.impl.DatastoreImpl.store(DatastoreImpl.java:103) at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:68) at cirrus.hibernate.tools.SchemaExport.main(SchemaExport.java:203) rethrown as cirrus.hibernate.MappingException: Problem trying to set property type by reflection: Could not find a getter for ownernumber in class buddy.database.Friend at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:191) at cirrus.hibernate.map.PersistentClass.propertiesFromXML(PersistentClass.java:97) at cirrus.hibernate.map.RootClass.<init>(RootClass.java:230) at cirrus.hibernate.map.Root.<init>(Root.java:145) at cirrus.hibernate.impl.DatastoreImpl.store(DatastoreImpl.java:103) at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:68) at cirrus.hibernate.tools.SchemaExport.main(SchemaExport.java:203) Caused by: cirrus.hibernate.MappingException: Could not find a getter for ownernumber in class buddy.database.Friend at cirrus.hibernate.helpers.ReflectHelper.getGetterMethod(ReflectHelper.java:119) at cirrus.hibernate.helpers.ReflectHelper.reflectedPropertyType(ReflectHelper.java:163) at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:180) ... 6 more (cirrus.hibernate.impl.DatastoreImpl.storeFile:71) - Could not configure datastore from file: src/buddy/database/Friend.hbm.xml Error creating schema Problem trying to set property type by reflection: Could not find a getter for ownernumber in class buddy.database.Friend cirrus.hibernate.MappingException: Could not find a getter for ownernumber in class buddy.database.Friend cirrus.hibernate.MappingException: Could not find a getter for ownernumber in class buddy.database.Friend at cirrus.hibernate.helpers.ReflectHelper.getGetterMethod(ReflectHelper.java:119) at cirrus.hibernate.helpers.ReflectHelper.getGetterMethod(ReflectHelper.java:119) at cirrus.hibernate.helpers.ReflectHelper.reflectedPropertyType(ReflectHelper.java:163) at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:180) at cirrus.hibernate.helpers.ReflectHelper.reflectedPropertyType(ReflectHelper.java:163) at cirrus.hibernate.map.PersistentClass.propertiesFromXML(PersistentClass.java:97) at cirrus.hibernate.map.RootClass.<init>(RootClass.java:230) at cirrus.hibernate.map.Root.<init>(Root.java:145) at cirrus.hibernate.impl.DatastoreImpl.store(DatastoreImpl.java:103) at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:68) at cirrus.hibernate.tools.SchemaExport.main(SchemaExport.java:203) at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:180) rethrown as cirrus.hibernate.MappingException: Problem trying to set property type by reflection: Could not find a getter for ownernumber in class buddy.database.Friend at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:191) at cirrus.hibernate.map.PersistentClass.propertiesFromXML(PersistentClass.java:97) at cirrus.hibernate.map.RootClass.<init>(RootClass.java:230) at cirrus.hibernate.map.PersistentClass.propertiesFromXML(PersistentClass.java:97) at cirrus.hibernate.map.Root.<init>(Root.java:145) at cirrus.hibernate.impl.DatastoreImpl.store(DatastoreImpl.java:103) at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:68) at cirrus.hibernate.map.RootClass.<init>(RootClass.java:230) at cirrus.hibernate.tools.SchemaExport.main(SchemaExport.java:203) Caused by: cirrus.hibernate.MappingException: Could not find a getter for ownernumber in class buddy.database.Friend at cirrus.hibernate.helpers.ReflectHelper.getGetterMethod(ReflectHelper.java:119) at cirrus.hibernate.helpers.ReflectHelper.reflectedPropertyType(ReflectHelper.java:163) at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:180) ... 6 more at cirrus.hibernate.map.Root.<init>(Root.java:145) rethrown as cirrus.hibernate.MappingException: Problem trying to set property type by reflection: Could not find a getter for ownernumber in class buddy.database.Friend at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:72) at cirrus.hibernate.impl.DatastoreImpl.store(DatastoreImpl.java:103) at cirrus.hibernate.tools.SchemaExport.main(SchemaExport.java:203) Caused by: cirrus.hibernate.MappingException: Problem trying to set property type by reflection: Could not find a getter for ownernumber in class buddy.database.Friend at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:191) at cirrus.hibernate.map.PersistentClass.propertiesFromXML(PersistentClass.java:97) at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:68) at cirrus.hibernate.tools.SchemaExport.main(SchemaExport.java:203) rethrown as at cirrus.hibernate.map.RootClass.<init>(RootClass.java:230) at cirrus.hibernate.map.Root.<init>(Root.java:145) at cirrus.hibernate.impl.DatastoreImpl.store(DatastoreImpl.java:103) at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:68) cirrus.hibernate.MappingException: Problem trying to set property type by reflection: Could not find a getter for ownernumber in class buddy.database.Friend at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:191) ... 1 more Caused by: cirrus.hibernate.MappingException: Could not find a getter for ownernumber in class buddy.database.Friend at cirrus.hibernate.map.PersistentClass.propertiesFromXML(PersistentClass.java:97) at cirrus.hibernate.map.RootClass.<init>(RootClass.java:230) at cirrus.hibernate.helpers.ReflectHelper.getGetterMethod(ReflectHelper.java:119) at cirrus.hibernate.map.Root.<init>(Root.java:145) at cirrus.hibernate.impl.DatastoreImpl.store(DatastoreImpl.java:103) at cirrus.hibernate.helpers.ReflectHelper.reflectedPropertyType(ReflectHelper.java:163) at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:180) ... 6 more at cirrus.hibernate.impl.DatastoreImpl.storeFile(DatastoreImpl.java:68) at cirrus.hibernate.tools.SchemaExport.main(SchemaExport.java:203) Caused by: cirrus.hibernate.MappingException: Could not find a getter for ownernumber in class buddy.database.Friend at cirrus.hibernate.helpers.ReflectHelper.getGetterMethod(ReflectHelper.java:119) at cirrus.hibernate.helpers.ReflectHelper.reflectedPropertyType(ReflectHelper.java:163) at cirrus.hibernate.map.Value.setTypeByReflection(Value.java:180) ... 6 more 25-11-2002 14:10:18, "Gavin King" <ga...@ap...> wrote: >Since everyone should be in the process of upgrading to version 1.2 ;) you >should now be using hibernate-mapping-1.1.dtd... > ><property name="ownernumber"> > <column name="ownernumber" type="string" length="50" not-null="true" >index="index_name"/> ></property> > >----- Original Message ----- >From: "Jochen Rebhan" <joc...@si...> >To: <hib...@li...> >Sent: Tuesday, November 26, 2002 1:07 AM >Subject: [Hibernate] How to create an index on normal property element ? > > >> >> I have the following hibernate-mapping definition for "Friend" : >> >> <class name="buddy.database.Friend" table="friends"> >> <id column="friends_key" name="key" type="long"> >> <generator class="native"/> >> </id> >> <set role="meetings" lazy="true" table="participants"> >> <key type="long" column="friends_key"/> >> <many-to-many class="buddy.database.Meetings" >column="meetings_key"/> >> </set> >> <property name="name" column="name" type="string" length="50"/> >> <property name="number" column="number" type="string" length="50" >not-null="true"/> >> >> >> <!-- I want to index this element: ownernumber to speed up some queries > --> >> <property name="ownernumber" column="ownernumber" type="string" >length="50" not-null="true"/> >> >> >> <property name="active" column="active" type="boolean" length="50" >/> >> >> </class> >> >> >> >> >> In Mysql I have to add this line manually (after running the Schema >generator) : >> >> create index ownerindex on friends (ownernumber); >> >> >> >> As I see in the DTD there is no way to specify an index for a normal >property, am I wrong ? >> >> >> >> <!ELEMENT property (column*)> >> <!ATTLIST property name CDATA #REQUIRED> >> <!ATTLIST property type CDATA #IMPLIED> >> <!ATTLIST property column CDATA #IMPLIED> >> <!ATTLIST property length CDATA #IMPLIED> >> <!ATTLIST property not-null (true|false) "false"> >> <!ATTLIST property unique (true|false) "false"> >> >> >> Thanks for any help, Hibernate is great ! >> >> >> Jochen Rebhan >> joc...@si... >> >> >> >> >> >> >> >> >> ------------------------------------------------------- >> 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: Thomas Q. <tq...@ya...> - 2002-11-25 14:23:54
|
Gavin King wrote: > extension. (On the other hand, it probably wouldn't be such a bad idea to > JavaDoc the tools package). Particularly true for people who use class SchemaExport in their code... > I'm selfishly designing the build script to make it as convenient as > possible for _me_ to do a binary file release from CVS. You should be able > to accommodate different needs by setting build properties. Fair enough. tom -- thomas quas | "The truth indeed has never been preached by the Buddha, tq...@ya... | seeing that one has to realize it within oneself." | -- Lamkara Sutra -- |
From: Gavin K. <ga...@ap...> - 2002-11-25 14:11:44
|
Since everyone should be in the process of upgrading to version 1.2 ;) you should now be using hibernate-mapping-1.1.dtd... <property name="ownernumber"> <column name="ownernumber" type="string" length="50" not-null="true" index="index_name"/> </property> ----- Original Message ----- From: "Jochen Rebhan" <joc...@si...> To: <hib...@li...> Sent: Tuesday, November 26, 2002 1:07 AM Subject: [Hibernate] How to create an index on normal property element ? > > I have the following hibernate-mapping definition for "Friend" : > > <class name="buddy.database.Friend" table="friends"> > <id column="friends_key" name="key" type="long"> > <generator class="native"/> > </id> > <set role="meetings" lazy="true" table="participants"> > <key type="long" column="friends_key"/> > <many-to-many class="buddy.database.Meetings" column="meetings_key"/> > </set> > <property name="name" column="name" type="string" length="50"/> > <property name="number" column="number" type="string" length="50" not-null="true"/> > > > <!-- I want to index this element: ownernumber to speed up some queries --> > <property name="ownernumber" column="ownernumber" type="string" length="50" not-null="true"/> > > > <property name="active" column="active" type="boolean" length="50" /> > > </class> > > > > > In Mysql I have to add this line manually (after running the Schema generator) : > > create index ownerindex on friends (ownernumber); > > > > As I see in the DTD there is no way to specify an index for a normal property, am I wrong ? > > > > <!ELEMENT property (column*)> > <!ATTLIST property name CDATA #REQUIRED> > <!ATTLIST property type CDATA #IMPLIED> > <!ATTLIST property column CDATA #IMPLIED> > <!ATTLIST property length CDATA #IMPLIED> > <!ATTLIST property not-null (true|false) "false"> > <!ATTLIST property unique (true|false) "false"> > > > Thanks for any help, Hibernate is great ! > > > Jochen Rebhan > joc...@si... > > > > > > > > > ------------------------------------------------------- > 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: Jochen R. <joc...@si...> - 2002-11-25 14:04:11
|
I have the following hibernate-mapping definition for "Friend" : <class name="buddy.database.Friend" table="friends"> <id column="friends_key" name="key" type="long"> <generator class="native"/> </id> <set role="meetings" lazy="true" table="participants"> <key type="long" column="friends_key"/> <many-to-many class="buddy.database.Meetings" column="meetings_key"/> </set> <property name="name" column="name" type="string" length="50"/> <property name="number" column="number" type="string" length="50" not-null="true"/> <!-- I want to index this element: ownernumber to speed up some queries : --> <property name="ownernumber" column="ownernumber" type="string" length="50" not-null="true"/> <property name="active" column="active" type="boolean" length="50" /> </class> In Mysql I have to add this line manually (after running the Schema generator) : create index ownerindex on friends (ownernumber); As I see in the DTD there is no way to specify an index for a normal property, am I wrong ? <!ELEMENT property (column*)> <!ATTLIST property name CDATA #REQUIRED> <!ATTLIST property type CDATA #IMPLIED> <!ATTLIST property column CDATA #IMPLIED> <!ATTLIST property length CDATA #IMPLIED> <!ATTLIST property not-null (true|false) "false"> <!ATTLIST property unique (true|false) "false"> Thanks for any help, Hibernate is great ! Jochen Rebhan joc...@si... |
From: Gavin K. <ga...@ap...> - 2002-11-25 13:33:57
|
Just use a new Session for each loop iteration. It is even possible in a = special case like this to have multiple sessions in the same JDBC = transaction.=20 for ( int i=3D0; i<100; i++) { Session s =3D sf.openSession(conn); for ( int j=3D0; j<100; j++) { s.save( ... ); } s.flush(); s.close(); } conn.commit(); However I suspect in this case you are better off doing it in multiple = transactions.... ----- Original Message -----=20 From: Christoph Sturm=20 To: Gavin King=20 Cc: hibernate list=20 Sent: Tuesday, November 26, 2002 12:27 AM Subject: Re: slow performance on flush I have a really long running import, and I want to write the records = to the db as they come in. Is it save to clear the entries Map after a = flush? Or would you recommend a different approach? ----- Original Message -----=20 From: Gavin King=20 To: Christoph Sturm=20 Cc: hibernate list=20 Sent: Monday, November 25, 2002 2:23 PM Subject: Re: slow performance on flush Yup, all entries are kept in the session cache until you close the = session. Why would you use this kind of code?? Just flush() once at the = end (outside the loop). ----- Original Message -----=20 From: Christoph Sturm=20 To: hib...@li... ; Gavin King=20 Sent: Tuesday, November 26, 2002 12:18 AM Subject: slow performance on flush Hi all! I'm trying to increase the performance of this pseudocode: for (j=3D1;j<100;j++) { for (i=3D1;i<100;i++) { session.save(class) } session.flush(); session.connection().commit(); } Now my problem is that flush doesnt take a constant time, but = every invocation of flush takes more time than the last one, the more I = flush the slower it gets. To me it looks like hibernate keeps the = references to the flushed objects in the entries map, and doesnt remove = them. Is there anything I can do about it? regards chris |
From: Christoph S. <ch...@mc...> - 2002-11-25 13:27:26
|
I have a really long running import, and I want to write the records to = the db as they come in. Is it save to clear the entries Map after a = flush? Or would you recommend a different approach? ----- Original Message -----=20 From: Gavin King=20 To: Christoph Sturm=20 Cc: hibernate list=20 Sent: Monday, November 25, 2002 2:23 PM Subject: Re: slow performance on flush Yup, all entries are kept in the session cache until you close the = session. Why would you use this kind of code?? Just flush() once at the = end (outside the loop). ----- Original Message -----=20 From: Christoph Sturm=20 To: hib...@li... ; Gavin King=20 Sent: Tuesday, November 26, 2002 12:18 AM Subject: slow performance on flush Hi all! I'm trying to increase the performance of this pseudocode: for (j=3D1;j<100;j++) { for (i=3D1;i<100;i++) { session.save(class) } session.flush(); session.connection().commit(); } Now my problem is that flush doesnt take a constant time, but every = invocation of flush takes more time than the last one, the more I flush = the slower it gets. To me it looks like hibernate keeps the references = to the flushed objects in the entries map, and doesnt remove them. Is = there anything I can do about it? regards chris |
From: Gavin K. <ga...@ap...> - 2002-11-25 13:24:41
|
Yup, all entries are kept in the session cache until you close the = session. Why would you use this kind of code?? Just flush() once at the = end (outside the loop). ----- Original Message -----=20 From: Christoph Sturm=20 To: hib...@li... ; Gavin King=20 Sent: Tuesday, November 26, 2002 12:18 AM Subject: slow performance on flush Hi all! I'm trying to increase the performance of this pseudocode: for (j=3D1;j<100;j++) { for (i=3D1;i<100;i++) { session.save(class) } session.flush(); session.connection().commit(); } Now my problem is that flush doesnt take a constant time, but every = invocation of flush takes more time than the last one, the more I flush = the slower it gets. To me it looks like hibernate keeps the references = to the flushed objects in the entries map, and doesnt remove them. Is = there anything I can do about it? regards chris |
From: Christoph S. <ch...@mc...> - 2002-11-25 13:17:31
|
Hi all! I'm trying to increase the performance of this pseudocode: for (j=3D1;j<100;j++) { for (i=3D1;i<100;i++) { session.save(class) } session.flush(); session.connection().commit(); } Now my problem is that flush doesnt take a constant time, but every = invocation of flush takes more time than the last one, the more I flush = the slower it gets. To me it looks like hibernate keeps the references = to the flushed objects in the entries map, and doesnt remove them. Is = there anything I can do about it? regards chris |
From: Gavin K. <ga...@ap...> - 2002-11-25 11:47:56
|
> (i) in order to generate the complete API documentation (currently the > tools packages are missing) I'd suggest to apply the following diff: I don't want API documentation generated for classes that aren't APIs ... ie. interfaces that I want to be able to freely change without impacting user code. Its actually extremely confusing for users to see a million packages and try and figure out which ones they should consider amenable to extension. (On the other hand, it probably wouldn't be such a bad idea to JavaDoc the tools package). > (ii) I found it somewhat inconvienient that the build file generates the > documentation and libs and stuff in a separate directory > (../hibernate-<version>). IMHO, this introduces unncessesary hassle with > IDE paths as soon as I update my sandbox after a version change; I'd > rather see the generated stuff stay in the sandbox. Is there any chance > we can change this? I could help out. I'm selfishly designing the build script to make it as convenient as possible for _me_ to do a binary file release from CVS. You should be able to accommodate different needs by setting build properties. peace Gavin |
From: Gavin K. <ga...@ap...> - 2002-11-25 11:47:54
|
At this stage I'm not planning anything beyond the <joined-subclass> mapping strategy. Theres plenty of workarounds ... you could create a data-holder class with a one-to-one association to the containing class, for example. Gavin ----- Original Message ----- From: "Boring, Jeff W, ALBAS" <jb...@at...> To: <hib...@li...> Sent: Friday, November 22, 2002 5:12 AM Subject: [Hibernate] Multi-table classes? > There was talk earlier, like in the 1.1 timeframe of enhancing Hiberate to allow 1 persistent class to map to more than 1 table. It does not appear this is included in 1.2 from browsing the new DTD and pdf. Is it? Are you still planning this enhancement? > > If the answer is no on all accounts then is there a workaround? > > > Jeff Boring > Custom & Web Services Development > AT&T Labs > jb...@at... > > > ------------------------------------------------------- > 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: Gavin K. <ga...@ap...> - 2002-11-25 11:19:08
|
> I will commit a README for the build process and shell scripts later today. Cool! |
From: Christian B. <chr...@bl...> - 2002-11-25 08:02:02
|
On 25 Nov (18:43), Gavin King wrote: > I will be releasing a new version real soon (the next day or so - just doing > some extra testing now). The highlights are: Again, great features! I'm improving the documentation again with a new stylesheet in the Wiki layout (we should release that when the site is switched over) and also improve and document the documentation build process: We now use Saxon (Xalan doesn't work well with the current DB-XSL) and don't require any additional packages or stylesheet files aside from the DocBook distribution files (using parrameters properly now). I will commit a README for the build process and shell scripts later today. -- Christian Bauer tu...@in... |
From: Gavin K. <ga...@ap...> - 2002-11-25 07:44:06
|
I will be releasing a new version real soon (the next day or so - just doing some extra testing now). The highlights are: * MUCH more mature support for normalized mappings :) * support for scalar values in queries called with find()! * support for component-valued properties in select clause * more natural semantics for query language expressions like: not foo.bar.baz = 'foo' * support for subcollections in query langugage: foo.bars[2]['index'], foo.bars[4].elements, foo.bars[0].size, etc. * new calandar + calendar_date types It would be nice if some of you guys could try out the current CVS HEAD over the next 24 hours, as a check that nothings broken and that new functionality is working as expected. |
From: Gavin K. <ga...@ap...> - 2002-11-25 07:35:29
|
This is a very cool idea and I'm happy to give whatever support is necessary on this end. (In particular, we need to update the hibernate XDoclet module to reflect the new mapping DTD so I will take care of that.) However, I'm not an expert with XDoclet and I've never used middlegen, so my usefulness will be somewhat limited. peace... Gavin ----- Original Message ----- From: "Ara Abrahamian" <ara...@le...> To: "'Matt Raible'" <ma...@ra...>; "'XDoclet User List'" <xdo...@li...> Cc: <hib...@li...>; <mid...@li...> Sent: Monday, November 25, 2002 6:18 PM Subject: [Hibernate] RE: [Xdoclet-user] Xdoclet, Middlegen and Hibernate > I'm willing to participate in this effort. Matt are you seriously > interested in a middlegen-hibernate module? > > Ara. > > -----Original Message----- > From: xdo...@li... > [mailto:xdo...@li...] On Behalf Of Aslak > Hellesoy > Sent: Monday, November 25, 2002 12:25 AM > To: Matt Raible; 'XDoclet User List' > Cc: hib...@li...; > mid...@li... > Subject: RE: [Xdoclet-user] Xdoclet, Middlegen and Hibernate > > Hi! > > Sorry for cross-posting. Please continue hibernate related discussions > over > in hib...@li.... If it's Middlegen related, > crosspost to mid...@li.... > > The best way to use Middlegen (http://boss.bekk.no/boss/middlegen/) with > Hibernate would be to use a similar approach as CMP. Middlegen could > generate the java beans with @hibernate tags. > > Then you let XDoclet generate the hibernate-mapping.xml with Hibernate's > XDoclet module. Hibernate maintains their own XDoclet module in the CVS > module named Tools. > > It doesn't look like the Hibernate folks are including their XDoclet > module > in their distro, but you'll find it here: > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/hibernate/ > > The hibernate tags: > http://tinyurl.com/2z2v > > Who wants to write a Hibernate plugin for Middlegen? > > Cheers, > Aslak > > > -----Original Message----- > > From: xdo...@li... > > [mailto:xdo...@li...]On Behalf Of Matt > > Raible > > Sent: 24. november 2002 19:19 > > To: 'XDoclet User List' > > Subject: [Xdoclet-user] Xdoclet, Middlegen and Hibernate > > > > > > I'm looking to produce a Struts example app with a persistence layer > > that is fully generated from an existing database. I'd like to use > > Castor, Hibernate, or possibly JDO (other suggestions welcome). I've > > seen Middlegen, which seems it might do everything, except I couldn't > > use Castor or Hibernate - but possibly JDO. > > > > Does anyone on this list have any hints or tips for using > > Ant/Xdoclet/Middlegen for fully creating this kind of app? > > > > Thanks, > > > > Matt > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Xdoclet-user mailing list > > Xdo...@li... > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Xdoclet-user mailing list > Xdo...@li... > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > > > > ------------------------------------------------------- > 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: Gavin K. <ga...@ap...> - 2002-11-25 07:25:49
|
Thanks! Please try again now..... ----- Original Message ----- From: "Matt Veitas" <mv...@ob...> To: "hibernate list" <hib...@li...> Sent: Monday, November 25, 2002 2:43 PM Subject: Re: [Hibernate] Oracle users... > Just ran the two tests against Oracle 9.2.01 on Win 2000. > > FooBarTest = SUCCESS > MultiTableTest = FAILURE > > MultiTableTest output: > > D:\jdk1.4\bin\javaw.exe -classpath > G:\intellij\lib\junit.jar;D:\jdk1.4\jre\lib\charsets.jar;D:\jdk1.4\jre\lib\j aws.jar;D:\jdk1.4\jre\lib\jce.jar;D:\jdk1.4\jre\lib\jsse.jar;D:\jdk1.4\jre\l ib\rt.jar;D:\jdk1.4\jre\lib\sunrsasign.jar;D:\jdk1.4\jre\lib\ext\dnsns.jar;D :\jdk1.4\jre\lib\ext\ldapsec.jar;D:\jdk1.4\jre\lib\ext\localedata.jar;D:\jdk 1.4\jre\lib\ext\sunjce_provider.jar;G:\projects\sourceforge\hibernate\head\H ibernate\lib\commons-collections.jar;G:\projects\sourceforge\hibernate\head\ Hibernate\lib\commons-dbcp.jar;G:\projects\sourceforge\hibernate\head\Hibern ate\lib\commons-lang.jar;G:\projects\sourceforge\hibernate\head\Hibernate\li b\commons-logging.jar;G:\projects\sourceforge\hibernate\head\Hibernate\lib\c ommons-pool.jar;G:\projects\sourceforge\hibernate\head\Hibernate\lib\j2ee.ja r;G:\projects\sourceforge\hibernate\head\Hibernate\lib\jcs.jar;G:\projects\s ourceforge\hibernate\head\Hibernate\lib\jdom.jar;G:\projects\sourceforge\hib ernate\head\Hibernate\lib\junit.jar;G:\projects\sourceforge\hibernate\head\H ibernate\lib\odmg.jar;G:\projects\sourceforge\hibernate\head\Hibernate\lib\x alan.jar;G:\projects\sourceforge\hibernate\head\Hibernate\lib\xerces.jar;G:\ projects\sourceforge\hibernate\head\Hibernate\lib\xml-apis.jar;G:\projects\s ourceforge\hibernate\head\Hibernate\lib\cglib.jar;G:\projects\sourceforge\hi bernate\head\Hibernate\lib\c3p0.jar;G:\projects\sourceforge\hibernate\head\H ibernate\build;G:\projects\sourceforge\hibernate\head\Hibernate;G:\projects\ common-lib\ojdbc14.jar;G:\intellij\lib\idea_rt.jar > com.intellij.rt.execution.junit.TextTestRunner > cirrus.hibernate.test.MultiTableTest > Nov 24, 2002 10:41:41 PM cirrus.hibernate.impl.DatastoreImpl storeResource > INFO: Mapping resource: cirrus/hibernate/test/Multi.hbm.xml > Nov 24, 2002 10:41:42 PM cirrus.hibernate.helpers.XMLHelper parseInputSource > INFO: Parsing XML: unknown system id > Nov 24, 2002 10:41:43 PM cirrus.hibernate.Environment <clinit> > INFO: Hibernate 1.2 beta 3 > Nov 24, 2002 10:41:43 PM cirrus.hibernate.Environment <clinit> > INFO: loaded properties from resource hibernate.properties > Nov 24, 2002 10:41:43 PM cirrus.hibernate.Environment <clinit> > INFO: using java.io streams to persist binary types > Nov 24, 2002 10:41:43 PM cirrus.hibernate.Environment <clinit> > INFO: JVM proxy support: true > Nov 24, 2002 10:41:43 PM cirrus.hibernate.sql.Dialect <init> > INFO: Using dialect: cirrus.hibernate.sql.OracleDialect > Nov 24, 2002 10:41:43 PM cirrus.hibernate.sql.Dialect <init> > INFO: Using dialect: cirrus.hibernate.sql.OracleDialect > Nov 24, 2002 10:41:43 PM cirrus.hibernate.sql.Dialect <init> > INFO: Using dialect: cirrus.hibernate.sql.OracleDialect > Nov 24, 2002 10:41:43 PM > cirrus.hibernate.connection.DriverManagerConnectionProvider configure > INFO: Hibernate connection pool size: 2 > Nov 24, 2002 10:41:43 PM > cirrus.hibernate.connection.DriverManagerConnectionProvider configure > INFO: Using driver: oracle.jdbc.driver.OracleDriver at URL: > jdbc:oracle:thin:@snotslinger:1521:tower11 > Nov 24, 2002 10:41:43 PM > cirrus.hibernate.connection.DriverManagerConnectionProvider configure > INFO: Connection properties: {user=hibernate, password=hibernate} > alter table subclass drop constraint subclassFK0 > Unsuccessful: ORA-00942: table or view does not exist > > alter table subclass drop constraint subclassFK1 > Unsuccessful: ORA-00942: table or view does not exist > > alter table nuthasubclass drop constraint nuthasubclassFK0 > Unsuccessful: ORA-00942: table or view does not exist > > alter table submulti drop constraint submultiFK0 > Unsuccessful: ORA-00942: table or view does not exist > > alter table rootclass drop constraint rootclassFK0 > Unsuccessful: ORA-00942: table or view does not exist > > drop table rootclass cascade constraints > Unsuccessful: ORA-00942: table or view does not exist > > drop table subclass cascade constraints > Unsuccessful: ORA-00942: table or view does not exist > > drop table nuthasubclass cascade constraints > Unsuccessful: ORA-00942: table or view does not exist > > drop table submulti cascade constraints > Unsuccessful: ORA-00942: table or view does not exist > > drop sequence hibernate_sequence > Unsuccessful: ORA-02289: sequence does not exist > > create table rootclass (id_ NUMBER(19,0) not null, count_ NUMBER(10,0) > not null, name VARCHAR2(255), address VARCHAR2(255), date_ DATE, parent > NUMBER(19,0), primary key (id_)) > create table subclass (id_ NUMBER(19,0) not null, intprop NUMBER(10,0) > not null, other1 NUMBER(19,0), other3 NUMBER(19,0), foo VARCHAR2(255), > primary key (id_)) > create table nuthasubclass (sid NUMBER(19,0) not null, extraProp > VARCHAR2(255), other2 NUMBER(19,0), cal DATE, floaty FLOAT, primary key > (sid)) > create table submulti (sid NUMBER(19,0) not null, amount FLOAT, parent > NUMBER(19,0), primary key (sid)) > alter table subclass add constraint subclassFK0 foreign key (other1) > references rootclass > alter table subclass add constraint subclassFK1 foreign key (other3) > references subclass > alter table nuthasubclass add constraint nuthasubclassFK0 foreign key > (other2) references nuthasubclass > alter table submulti add constraint submultiFK0 foreign key (parent) > references submulti > alter table rootclass add constraint rootclassFK0 foreign key (parent) > references subclass > create index rootclassIDX1 on rootclass (parent) > create sequence hibernate_sequence > Nov 24, 2002 10:41:45 PM cirrus.hibernate.sql.Dialect <init> > INFO: Using dialect: cirrus.hibernate.sql.OracleDialect > Nov 24, 2002 10:41:45 PM > cirrus.hibernate.connection.DriverManagerConnectionProvider configure > INFO: Hibernate connection pool size: 2 > Nov 24, 2002 10:41:45 PM > cirrus.hibernate.connection.DriverManagerConnectionProvider configure > INFO: Using driver: oracle.jdbc.driver.OracleDriver at URL: > jdbc:oracle:thin:@snotslinger:1521:tower11 > Nov 24, 2002 10:41:45 PM > cirrus.hibernate.connection.DriverManagerConnectionProvider configure > INFO: Connection properties: {user=hibernate, password=hibernate} > Nov 24, 2002 10:41:45 PM cirrus.hibernate.impl.SessionFactoryImpl <init> > INFO: JDBC result set fetch size: 25 > Nov 24, 2002 10:41:45 PM cirrus.hibernate.impl.SessionFactoryImpl <init> > INFO: Use outer join fetching: true > Nov 24, 2002 10:41:45 PM cirrus.hibernate.impl.SessionFactoryImpl <init> > INFO: Use scrollable result sets: true > Nov 24, 2002 10:41:45 PM > cirrus.hibernate.connection.DriverManagerConnectionProvider finalize > INFO: Cleaning up dereferenced connection pool: > jdbc:oracle:thin:@snotslinger:1521:tower11 > Nov 24, 2002 10:41:45 PM > cirrus.hibernate.impl.SessionFactoryObjectFactory addInstance > INFO: no JDNI name configured > Nov 24, 2002 10:41:45 PM cirrus.hibernate.impl.SessionFactoryImpl <init> > INFO: Query language substitutions: {no='N', true=1, yes='Y', false=0} > Nov 24, 2002 10:41:45 PM cirrus.hibernate.impl.SessionFactoryImpl <init> > INFO: Query language imports: cirrus.hibernate.test > .Nov 24, 2002 10:41:46 PM cirrus.hibernate.helpers.JDBCExceptionReporter > logExceptions > WARNING: SQL Error: 1, SQLState: 23000 > Nov 24, 2002 10:41:46 PM cirrus.hibernate.helpers.JDBCExceptionReporter > logExceptions > SEVERE: ORA-00001: unique constraint (HIBERNATE.SYS_C005158) violated > > E.E. > Time: 0.75 > There were 2 errors: > 1) > testMultiTable(cirrus.hibernate.test.MultiTableTest)cirrus.hibernate.Hiberna teException: > More than one row with the given identifier was found: 123, for class: > cirrus.hibernate.test.Multi > at cirrus.hibernate.loader.EntityLoader.load(EntityLoader.java:73) > at > cirrus.hibernate.persister.MultiTableEntityPersister.load(MultiTableEntityPe rsister.java:553) > at cirrus.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:1539) > at > cirrus.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1410) > at cirrus.hibernate.impl.SessionImpl.load(SessionImpl.java:1348) > at > cirrus.hibernate.test.MultiTableTest.testMultiTable(MultiTableTest.java:54) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) > at > com.intellij.rt.execution.junit.TextTestRunner.main(TextTestRunner.java:12) > 2) > testMultiTableCollections(cirrus.hibernate.test.MultiTableTest)java.sql.SQLE xception: > ORA-00001: unique constraint (HIBERNATE.SYS_C005158) violated > > at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) > at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289) > at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573) > at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891) > at > oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1093) > at > oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2047 ) > at > oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1940) > at > oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java :2709) > at > oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedState ment.java:589) > at > cirrus.hibernate.persister.MultiTableEntityPersister.insert(MultiTableEntity Persister.java:621) > at > cirrus.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:20) > at cirrus.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:1670) > at cirrus.hibernate.impl.SessionImpl.execute(SessionImpl.java:1650) > at cirrus.hibernate.impl.SessionImpl.flush(SessionImpl.java:1595) > at > cirrus.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:51) > at > cirrus.hibernate.test.MultiTableTest.testMultiTableCollections(MultiTableTes t.java:139) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) > at > com.intellij.rt.execution.junit.TextTestRunner.main(TextTestRunner.java:12) > > FAILURES!!! > Tests run: 3, Failures: 0, Errors: 2 > > Process terminated with exit code -1 > > > > > Gavin King wrote: > > >Would someone please grab a CVS update and run FooBarTest and MultiTableTest > >on Oracle 9 and confirm that they are both now working.... > > > >TIA > > > >Gavin > > > > > > > >------------------------------------------------------- > >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 > > > > > > > > > > ------------------------------------------------------- > 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: Ara A. <ara...@le...> - 2002-11-25 07:11:13
|
I'm willing to participate in this effort. Matt are you seriously interested in a middlegen-hibernate module? Ara. -----Original Message----- From: xdo...@li... [mailto:xdo...@li...] On Behalf Of Aslak Hellesoy Sent: Monday, November 25, 2002 12:25 AM To: Matt Raible; 'XDoclet User List' Cc: hib...@li...; mid...@li... Subject: RE: [Xdoclet-user] Xdoclet, Middlegen and Hibernate Hi! Sorry for cross-posting. Please continue hibernate related discussions over in hib...@li.... If it's Middlegen related, crosspost to mid...@li.... The best way to use Middlegen (http://boss.bekk.no/boss/middlegen/) with Hibernate would be to use a similar approach as CMP. Middlegen could generate the java beans with @hibernate tags. Then you let XDoclet generate the hibernate-mapping.xml with Hibernate's XDoclet module. Hibernate maintains their own XDoclet module in the CVS module named Tools. It doesn't look like the Hibernate folks are including their XDoclet module in their distro, but you'll find it here: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/hibernate/ The hibernate tags: http://tinyurl.com/2z2v Who wants to write a Hibernate plugin for Middlegen? Cheers, Aslak > -----Original Message----- > From: xdo...@li... > [mailto:xdo...@li...]On Behalf Of Matt > Raible > Sent: 24. november 2002 19:19 > To: 'XDoclet User List' > Subject: [Xdoclet-user] Xdoclet, Middlegen and Hibernate > > > I'm looking to produce a Struts example app with a persistence layer > that is fully generated from an existing database. I'd like to use > Castor, Hibernate, or possibly JDO (other suggestions welcome). I've > seen Middlegen, which seems it might do everything, except I couldn't > use Castor or Hibernate - but possibly JDO. > > Does anyone on this list have any hints or tips for using > Ant/Xdoclet/Middlegen for fully creating this kind of app? > > Thanks, > > Matt > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Xdoclet-user mailing list > Xdo...@li... > https://lists.sourceforge.net/lists/listinfo/xdoclet-user ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Xdoclet-user mailing list Xdo...@li... https://lists.sourceforge.net/lists/listinfo/xdoclet-user |
From: Matt V. <mv...@ob...> - 2002-11-25 03:42:20
|
Just ran the two tests against Oracle 9.2.01 on Win 2000. FooBarTest =3D SUCCESS MultiTableTest =3D FAILURE MultiTableTest output: D:\jdk1.4\bin\javaw.exe -classpath=20 G:\intellij\lib\junit.jar;D:\jdk1.4\jre\lib\charsets.jar;D:\jdk1.4\jre\li= b\jaws.jar;D:\jdk1.4\jre\lib\jce.jar;D:\jdk1.4\jre\lib\jsse.jar;D:\jdk1.4= \jre\lib\rt.jar;D:\jdk1.4\jre\lib\sunrsasign.jar;D:\jdk1.4\jre\lib\ext\dn= sns.jar;D:\jdk1.4\jre\lib\ext\ldapsec.jar;D:\jdk1.4\jre\lib\ext\localedat= a.jar;D:\jdk1.4\jre\lib\ext\sunjce_provider.jar;G:\projects\sourceforge\h= ibernate\head\Hibernate\lib\commons-collections.jar;G:\projects\sourcefor= ge\hibernate\head\Hibernate\lib\commons-dbcp.jar;G:\projects\sourceforge\= hibernate\head\Hibernate\lib\commons-lang.jar;G:\projects\sourceforge\hib= ernate\head\Hibernate\lib\commons-logging.jar;G:\projects\sourceforge\hib= ernate\head\Hibernate\lib\commons-pool.jar;G:\projects\sourceforge\hibern= ate\head\Hibernate\lib\j2ee.jar;G:\projects\sourceforge\hibernate\head\Hi= bernate\lib\jcs.jar;G:\projects\sourceforge\hibernate\head\Hibernate\lib\= jdom.jar;G:\projects\sourceforge\hibernate\head\Hibernate\lib\junit.jar;G= :\projects\sourceforge\hibernate\head\Hibernate\lib\odmg.jar;G:\projects\= sourceforge\hibernate\head\Hibernate\lib\xalan.jar;G:\projects\sourceforg= e\hibernate\head\Hibernate\lib\xerces.jar;G:\projects\sourceforge\hiberna= te\head\Hibernate\lib\xml-apis.jar;G:\projects\sourceforge\hibernate\head= \Hibernate\lib\cglib.jar;G:\projects\sourceforge\hibernate\head\Hibernate= \lib\c3p0.jar;G:\projects\sourceforge\hibernate\head\Hibernate\build;G:\p= rojects\sourceforge\hibernate\head\Hibernate;G:\projects\common-lib\ojdbc= 14.jar;G:\intellij\lib\idea_rt.jar=20 com.intellij.rt.execution.junit.TextTestRunner=20 cirrus.hibernate.test.MultiTableTest Nov 24, 2002 10:41:41 PM cirrus.hibernate.impl.DatastoreImpl storeResourc= e INFO: Mapping resource: cirrus/hibernate/test/Multi.hbm.xml Nov 24, 2002 10:41:42 PM cirrus.hibernate.helpers.XMLHelper parseInputSou= rce INFO: Parsing XML: unknown system id Nov 24, 2002 10:41:43 PM cirrus.hibernate.Environment <clinit> INFO: Hibernate 1.2 beta 3 Nov 24, 2002 10:41:43 PM cirrus.hibernate.Environment <clinit> INFO: loaded properties from resource hibernate.properties Nov 24, 2002 10:41:43 PM cirrus.hibernate.Environment <clinit> INFO: using java.io streams to persist binary types Nov 24, 2002 10:41:43 PM cirrus.hibernate.Environment <clinit> INFO: JVM proxy support: true Nov 24, 2002 10:41:43 PM cirrus.hibernate.sql.Dialect <init> INFO: Using dialect: cirrus.hibernate.sql.OracleDialect Nov 24, 2002 10:41:43 PM cirrus.hibernate.sql.Dialect <init> INFO: Using dialect: cirrus.hibernate.sql.OracleDialect Nov 24, 2002 10:41:43 PM cirrus.hibernate.sql.Dialect <init> INFO: Using dialect: cirrus.hibernate.sql.OracleDialect Nov 24, 2002 10:41:43 PM=20 cirrus.hibernate.connection.DriverManagerConnectionProvider configure INFO: Hibernate connection pool size: 2 Nov 24, 2002 10:41:43 PM=20 cirrus.hibernate.connection.DriverManagerConnectionProvider configure INFO: Using driver: oracle.jdbc.driver.OracleDriver at URL:=20 jdbc:oracle:thin:@snotslinger:1521:tower11 Nov 24, 2002 10:41:43 PM=20 cirrus.hibernate.connection.DriverManagerConnectionProvider configure INFO: Connection properties: {user=3Dhibernate, password=3Dhibernate} alter table subclass drop constraint subclassFK0 Unsuccessful: ORA-00942: table or view does not exist alter table subclass drop constraint subclassFK1 Unsuccessful: ORA-00942: table or view does not exist alter table nuthasubclass drop constraint nuthasubclassFK0 Unsuccessful: ORA-00942: table or view does not exist alter table submulti drop constraint submultiFK0 Unsuccessful: ORA-00942: table or view does not exist alter table rootclass drop constraint rootclassFK0 Unsuccessful: ORA-00942: table or view does not exist drop table rootclass cascade constraints Unsuccessful: ORA-00942: table or view does not exist drop table subclass cascade constraints Unsuccessful: ORA-00942: table or view does not exist drop table nuthasubclass cascade constraints Unsuccessful: ORA-00942: table or view does not exist drop table submulti cascade constraints Unsuccessful: ORA-00942: table or view does not exist drop sequence hibernate_sequence Unsuccessful: ORA-02289: sequence does not exist create table rootclass (id_ NUMBER(19,0) not null, count_ NUMBER(10,0)=20 not null, name VARCHAR2(255), address VARCHAR2(255), date_ DATE, parent=20 NUMBER(19,0), primary key (id_)) create table subclass (id_ NUMBER(19,0) not null, intprop NUMBER(10,0)=20 not null, other1 NUMBER(19,0), other3 NUMBER(19,0), foo VARCHAR2(255),=20 primary key (id_)) create table nuthasubclass (sid NUMBER(19,0) not null, extraProp=20 VARCHAR2(255), other2 NUMBER(19,0), cal DATE, floaty FLOAT, primary key=20 (sid)) create table submulti (sid NUMBER(19,0) not null, amount FLOAT, parent=20 NUMBER(19,0), primary key (sid)) alter table subclass add constraint subclassFK0 foreign key (other1)=20 references rootclass alter table subclass add constraint subclassFK1 foreign key (other3)=20 references subclass alter table nuthasubclass add constraint nuthasubclassFK0 foreign key=20 (other2) references nuthasubclass alter table submulti add constraint submultiFK0 foreign key (parent)=20 references submulti alter table rootclass add constraint rootclassFK0 foreign key (parent)=20 references subclass create index rootclassIDX1 on rootclass (parent) create sequence hibernate_sequence Nov 24, 2002 10:41:45 PM cirrus.hibernate.sql.Dialect <init> INFO: Using dialect: cirrus.hibernate.sql.OracleDialect Nov 24, 2002 10:41:45 PM=20 cirrus.hibernate.connection.DriverManagerConnectionProvider configure INFO: Hibernate connection pool size: 2 Nov 24, 2002 10:41:45 PM=20 cirrus.hibernate.connection.DriverManagerConnectionProvider configure INFO: Using driver: oracle.jdbc.driver.OracleDriver at URL:=20 jdbc:oracle:thin:@snotslinger:1521:tower11 Nov 24, 2002 10:41:45 PM=20 cirrus.hibernate.connection.DriverManagerConnectionProvider configure INFO: Connection properties: {user=3Dhibernate, password=3Dhibernate} Nov 24, 2002 10:41:45 PM cirrus.hibernate.impl.SessionFactoryImpl <init> INFO: JDBC result set fetch size: 25 Nov 24, 2002 10:41:45 PM cirrus.hibernate.impl.SessionFactoryImpl <init> INFO: Use outer join fetching: true Nov 24, 2002 10:41:45 PM cirrus.hibernate.impl.SessionFactoryImpl <init> INFO: Use scrollable result sets: true Nov 24, 2002 10:41:45 PM=20 cirrus.hibernate.connection.DriverManagerConnectionProvider finalize INFO: Cleaning up dereferenced connection pool:=20 jdbc:oracle:thin:@snotslinger:1521:tower11 Nov 24, 2002 10:41:45 PM=20 cirrus.hibernate.impl.SessionFactoryObjectFactory addInstance INFO: no JDNI name configured Nov 24, 2002 10:41:45 PM cirrus.hibernate.impl.SessionFactoryImpl <init> INFO: Query language substitutions: {no=3D'N', true=3D1, yes=3D'Y', false= =3D0} Nov 24, 2002 10:41:45 PM cirrus.hibernate.impl.SessionFactoryImpl <init> INFO: Query language imports: cirrus.hibernate.test =2ENov 24, 2002 10:41:46 PM cirrus.hibernate.helpers.JDBCExceptionReporte= r=20 logExceptions WARNING: SQL Error: 1, SQLState: 23000 Nov 24, 2002 10:41:46 PM cirrus.hibernate.helpers.JDBCExceptionReporter=20 logExceptions SEVERE: ORA-00001: unique constraint (HIBERNATE.SYS_C005158) violated E.E. Time: 0.75 There were 2 errors: 1)=20 testMultiTable(cirrus.hibernate.test.MultiTableTest)cirrus.hibernate.Hibe= rnateException:=20 More than one row with the given identifier was found: 123, for class:=20 cirrus.hibernate.test.Multi at cirrus.hibernate.loader.EntityLoader.load(EntityLoader.java:73) at=20 cirrus.hibernate.persister.MultiTableEntityPersister.load(MultiTableEntit= yPersister.java:553) at cirrus.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:1539) at=20 cirrus.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1410) at cirrus.hibernate.impl.SessionImpl.load(SessionImpl.java:1348) at=20 cirrus.hibernate.test.MultiTableTest.testMultiTable(MultiTableTest.java:5= 4) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at=20 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) at=20 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) at=20 com.intellij.rt.execution.junit.TextTestRunner.main(TextTestRunner.java:1= 2) 2)=20 testMultiTableCollections(cirrus.hibernate.test.MultiTableTest)java.sql.S= QLException:=20 ORA-00001: unique constraint (HIBERNATE.SYS_C005158) violated at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289) at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891) at=20 oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1093) at=20 oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2= 047) at=20 oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:19= 40) at=20 oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.j= ava:2709) at=20 oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedSt= atement.java:589) at=20 cirrus.hibernate.persister.MultiTableEntityPersister.insert(MultiTableEnt= ityPersister.java:621) at=20 cirrus.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:= 20) at cirrus.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:1670= ) at cirrus.hibernate.impl.SessionImpl.execute(SessionImpl.java:1650) at cirrus.hibernate.impl.SessionImpl.flush(SessionImpl.java:1595) at=20 cirrus.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:= 51) at=20 cirrus.hibernate.test.MultiTableTest.testMultiTableCollections(MultiTable= Test.java:139) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at=20 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) at=20 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) at=20 com.intellij.rt.execution.junit.TextTestRunner.main(TextTestRunner.java:1= 2) FAILURES!!! Tests run: 3, Failures: 0, Errors: 2 Process terminated with exit code -1 Gavin King wrote: >Would someone please grab a CVS update and run FooBarTest and MultiTable= Test >on Oracle 9 and confirm that they are both now working.... > >TIA > >Gavin > > > >------------------------------------------------------- >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 > > =20 > |
From: Gavin K. <ga...@ap...> - 2002-11-25 02:57:39
|
Would someone please grab a CVS update and run FooBarTest and MultiTableTest on Oracle 9 and confirm that they are both now working.... TIA Gavin |
From: <asl...@ne...> - 2002-11-24 20:55:21
|
Hi! Sorry for cross-posting. Please continue hibernate related discussions over in hib...@li.... If it's Middlegen related, crosspost to mid...@li.... The best way to use Middlegen (http://boss.bekk.no/boss/middlegen/) with Hibernate would be to use a similar approach as CMP. Middlegen could generate the java beans with @hibernate tags. Then you let XDoclet generate the hibernate-mapping.xml with Hibernate's XDoclet module. Hibernate maintains their own XDoclet module in the CVS module named Tools. It doesn't look like the Hibernate folks are including their XDoclet module in their distro, but you'll find it here: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/hibernate/ The hibernate tags: http://tinyurl.com/2z2v Who wants to write a Hibernate plugin for Middlegen? Cheers, Aslak > -----Original Message----- > From: xdo...@li... > [mailto:xdo...@li...]On Behalf Of Matt > Raible > Sent: 24. november 2002 19:19 > To: 'XDoclet User List' > Subject: [Xdoclet-user] Xdoclet, Middlegen and Hibernate > > > I'm looking to produce a Struts example app with a persistence layer > that is fully generated from an existing database. I'd like to use > Castor, Hibernate, or possibly JDO (other suggestions welcome). I've > seen Middlegen, which seems it might do everything, except I couldn't > use Castor or Hibernate - but possibly JDO. > > Does anyone on this list have any hints or tips for using > Ant/Xdoclet/Middlegen for fully creating this kind of app? > > Thanks, > > Matt > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Xdoclet-user mailing list > Xdo...@li... > https://lists.sourceforge.net/lists/listinfo/xdoclet-user |