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: Riddick, C. <chr...@la...> - 2002-12-15 19:05:56
|
Apologies if this isn't the most suitable channel for bug reports, but... In class... cirrus.hibernate.transaction.WebSphereTransactionManagerLookup I believe the statement... Class.forName("com.ibm.ejcs.jts.jta.JTSXA") should actually be Class.forName("com.ibm.ejs.jts.jta.JTSXA") That works for Websphere 4. Cheers Chris This e-mail (and any attachments) may contain privileged and/or confidential information. If you are not the intended recipient please do not disclose, copy, distribute, disseminate or take any action in reliance on it. If you have received this message in error please reply and tell us and then delete it. Should you wish to communicate with us by e-mail we cannot guarantee the security of any data outside our own computer systems. For the protection of Legal & General's systems and staff, incoming emails will be automatically scanned. Any information contained in this message may be subject to applicable terms and conditions and must not be construed as giving investment advice within or outside the United Kingdom. Representative only of the Legal & General marketing group, members of which are regulated by the Financial Services Authority for the purposes of advising on life assurance and investment products bearing Legal & General's name. Legal & General Group PLC, Temple Court, 11 Queen Victoria Street, London, EC4N 4TP. Registered in England no: 166055. |
From: Christian B. <chr...@bl...> - 2002-12-15 16:30:58
|
On 15 Dec (08:17), Konstantin Priblouda wrote: > Suppose I try to implement following: > > Address -> Country. > > Both are persistent. Address belongs to > country. How do I implement this using hibernate? > Use country_id property in Address? > Set constraint on it? This could be mapped in different ways. Assuming that this type of association is a composition, you could use a component mapping: http://hibernate.bluemars.net/hib_docs/reference/html_single/#adv-or-mapping-s2 -- Christian Bauer tu...@in... |
From: Konstantin P. <kpr...@ya...> - 2002-12-15 16:17:24
|
Hi all, Suppose I try to implement following: Address -> Country. Both are persistent. Address belongs to country. How do I implement this using hibernate? Use country_id property in Address? Set constraint on it? What are proper hibernate mappings? regards, ===== Konstantin Priblouda ( ko5tik ) Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
From: Konstantin P. <kpr...@ya...> - 2002-12-15 12:31:10
|
--- Gavin King <Gav...@ex...> wrote: > Hi Konstantin, > > it would be _so_ useful if you could write up a > little bit of > documentation of this demo (which I notice is > already recieving > some attention in the java.blogs community) so that > I can link > to that from the Hibernate website. Could you post some links? :) It was just a quick-n-dirty test for new module - so more documentation will follow eventually... regards, ===== Konstantin Priblouda ( ko5tik ) Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
From: Gavin K. <ga...@ap...> - 2002-12-15 10:50:19
|
Hi everyone :) Please check out the API changes currently in CVS. I've been looking for an excuse to change the incredibly ugly suspendFlushed() / resumeFlushes() and I finally found one. The new FlushMode class now defines *three* useful automatic flushing strategies. Let me know if there is anything to dislike about this new API. TIA Gavin |
From: Gavin K. <Gav...@ex...> - 2002-12-15 02:29:25
|
Hi Konstantin, it would be _so_ useful if you could write up a little bit of=20 documentation of this demo (which I notice is already recieving=20 some attention in the java.blogs community) so that I can link=20 to that from the Hibernate website. Looks like I might be using XDoclet + Hibernate in a project soon myself :) Gavin. > -----Original Message----- > From: Konstantin Priblouda [mailto:kpr...@ya...]=20 > Sent: Friday, 13 December 2002 8:12 PM > To: xdoclet-devel > Cc: hibernate-devel > Subject: [Hibernate] Demo of Hibernate used from session bean=20 > with XDoclet generated .sar - descriptor >=20 >=20 > Hi all,=20 > Yesterday I put together a small demo=20 > showing hibernate in action: >=20 > 1. XDoclet generated mappings & service descriptor > 2. Session bean accessing hibernate > 3. Small client. >=20 > This works with JBoss.=20 >=20 > Schema snipper for hypersonic: > ---%<-------- > CREATE TABLE HIBERNATE_CUSTOMER(ID INTEGER NOT NULL > IDENTITY PRIMARY KEY,CUSTOMERDESCRIPTION > VARCHAR,CUSTOMERNAME VARCHAR,CUSTOMERNUMBER > VARCHAR,UNIQUE(ID)) > CREATE UNIQUE INDEX PK_HIBERNATE_CUSTOMER ON > HIBERNATE_CUSTOMER(ID) > -----%<--------- >=20 > This demo will need current CVS version of xdoclet, > and also current hibernate version. >=20 > ant deploy compiles and depoys SessionBean & hibernate > service, then you can use startup script in client > directory.=20 >=20 > YOu can download it from: http://www.pribluda.de/hibernate-test.tar.gz >=20 > regards, >=20 > =3D=3D=3D=3D=3D > Konstantin Priblouda ( ko5tik ) Freelance Software developer > < http://www.pribluda.de > < play java games ->=20 http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility=20 Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ hibernate-devel mailing list hib...@li... https://lists.sourceforge.net/lists/listinfo/hibernate-devel ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: Gavin K. <Gav...@ex...> - 2002-12-15 02:18:12
|
> Looking at the code, I would add LifeCycle callback in=20 > SessionImpl.flushEntities(). Am I missing anywhere else that=20 > an update could happen? =20 Nope, thats the only place. > Also, is it worth while for me to=20 > submit this as a patch? Changing the LifeCycle interface=20 > would break existing usages, but I could extend it to=20 > LifeCycleFlush or something and add the callback in > SessionImpl.flushEntities() if it would be useful to other people. No, we discussed this long ago and decided against adding an onDirty() call to the Lifecycle interface. A reason for this is=20 the following sequence of events in the flush sequence: (1) grab the object's properties (2) diff the current values against previous state //(3) if dirty call onDirty() .... not in current implementation //(4) grab the property values _again_ to see if they changed (5) persist the new property values If we did have the onDirty() call at step (3), we would have to grab the object state _again_ before step (5). This would have a negative impact upon performance. Interceptor.onFlushDirty() lets you meddle with the object properties in a way that avoids the double reflection. ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: Gavin K. <Gav...@ex...> - 2002-12-15 02:07:49
|
Pietro, its best to concentrate on FooBarTest first, since that is the most generic set of tests. And you should go through and remove all the test code that relates to features that are unsupported by Access (I'm thinking subselects in particular). > -----Original Message----- > From: Pietro Polsinelli [mailto:de...@op...]=20 > Sent: Sunday, 15 December 2002 2:48 AM > To: hib...@li... > Subject: [Hibernate] microsoft access dialect 2 - getting messy >=20 >=20 > hi, > following the suggestion of our one of the few, I tried=20 > to test the above=20 > dialect, with non glorious results (86 failures out of 91 :-( ). To=20 > proceeded I have focused only on MultiTableTest. >=20 > The first reason is that I have tested the dialect in my=20 > applications with=20 > string assigned identifiers, and there seemed to be some=20 > problems with=20 > native identifiers: >=20 > <id type=3D"long" column=3D"id_" > > <generator class=3D"native"/> > </id> >=20 > create table rootclass ( > id_ INTEGER IDENTITY NOT NULL, > countX INTEGER not null, > name VARCHAR(255) null, > address VARCHAR(255) null, > dateX DATETIME null, > parent INTEGER null, > primary key (id_) > ) >=20 > Unsuccessful: [Microsoft][ODBC Microsoft Access Driver]=20 > Syntax error in=20 > CREATE TABLE statement. >=20 > but if I state it as >=20 > <id type=3D"long" column=3D"id_" > > <generator class=3D"hilo.long"/> > </id> >=20 > create table rootclass ( > id_ INTEGER not null, > countX INTEGER not null, > name VARCHAR(255) null, > address VARCHAR(255) null, > dateX DATETIME null, > parent INTEGER null, > primary key (id_) > ) >=20 > the table is created fine. So I guess that its the IDENTITY=20 > keyword that=20 > irritates access. and I mended MsAccessDialect with: >=20 > public String getIdentityColumnString() { > //return "IDENTITY NOT NULL"; > return "NOT NULL"; > } >=20 > Then all db schema operations proceed fine for this test (not for the=20 > others, I believe because of filed names, but I'll try this=20 > later). The=20 > next problem for this test is that I get this monstruous: >=20 > 16:34:26,912 DEBUG DriverManagerConnectionProvider:97 - returning=20 > connection to pool > 16:34:26,942 DEBUG SessionFactoryImpl:113 - Instantiating=20 > session factory 16:34:26,942 INFO Dialect:37 - Using dialect:=20 > cirrus.hibernate.sql.MSAccessDialect > 16:34:26,942 INFO DriverManagerConnectionProvider:36 - Hibernate=20 > connection pool size: 2 > 16:34:26,952 INFO DriverManagerConnectionProvider:65 - Using driver:=20 > com.inzoom.jdbcado.Driver at URL:=20 > jdbc:izmado:IzmDllPath=3DE:\cvs_out\teamwork\html\WEB-INF\lib\Iz mJniAdo.dll;IzmRoyaltyFree=3DXXXXXXXX;Provider=3DMSD> ASQL;Driver=3D{Micros= oft > Access Driver (*.mdb)};Dbq=3De:\cvs_out\teamwork\data\teamwork_ol.mdb > 16:34:26,952 INFO DriverManagerConnectionProvider:66 - Connection=20 > properties: {user=3Dadmin, password=3D} > 16:34:26,962 INFO PreparedStatementCache:49 - prepared=20 > statement cache=20 > size: 100 > 16:34:26,962 INFO SessionFactoryImpl:144 - Use outer join=20 > fetching: false 16:34:26,972 DEBUG=20 > DriverManagerConnectionProvider:78 - Opening new JDBC=20 > connection > 16:34:26,982 DEBUG DriverManagerConnectionProvider:89 -=20 > Created connection=20 > to:=20 > jdbc:izmado:IzmDllPath=3DE:\cvs_out\teamwork\html\WEB-INF\lib\Iz > mJniAdo.dll;IzmRoyaltyFree=3D643122985;Provider=3DMSDASQL;Driver=3D{ > Microsoft=20 > Access Driver (*.mdb)};Dbq=3De:\cvs_out\teamwork\data\teamwork_ol.mdb,=20 > Isolation Level: 2 > 16:34:27,002 DEBUG DriverManagerConnectionProvider:97 - returning=20 > connection to pool > 16:34:27,002 INFO SessionFactoryImpl:167 - Use scrollable=20 > result sets: true 16:34:28,935 DEBUG=20 > SessionFactoryObjectFactory:39 - initializing class=20 > SessionFactoryObjectFactory > 16:34:28,955 DEBUG SessionFactoryObjectFactory:76 - registered:=20 > 40288086f21dae9100f21dae9f470000 (unnamed) > 16:34:28,965 INFO SessionFactoryObjectFactory:82 - no JDNI=20 > name configured 16:34:28,975 INFO SessionFactoryImpl:261 -=20 > Query language substitutions:=20 > {no=3D'N', true=3D1, yes=3D'Y', false=3D0} > 16:34:28,975 INFO SessionFactoryImpl:264 - Query language imports:=20 > cirrus.hibernate.test > 16:34:28,975 DEBUG SessionFactoryImpl:276 - Instantiated=20 > session factory 16:34:29,125 DEBUG SessionImpl:332 - opened=20 > session 16:34:29,125 DEBUG JDBCTransaction:34 - begin=20 > 16:34:29,125 DEBUG DriverManagerConnectionProvider:73 - Using=20 > cached JDBC=20 > connection > 16:34:29,135 DEBUG SessionImpl:521 - saving=20 > [cirrus.hibernate.test.Multi#123] 16:34:29,185 DEBUG=20 > SessionImpl:521 - saving [cirrus.hibernate.test.Simple#1234] > 16:34:29,185 DEBUG SessionImpl:521 - saving=20 > [cirrus.hibernate.test.SubMulti#2] > 16:34:29,185 DEBUG JDBCTransaction:48 - commit > 16:34:29,185 DEBUG SessionImpl:1605 - flushing session=20 > 16:34:29,185 DEBUG SessionImpl:1682 - Flushing entities and=20 > processing=20 > referenced collections > 16:34:29,205 DEBUG SessionImpl:1874 - Processing unreferenced=20 > collections 16:34:29,205 DEBUG SessionImpl:1898 - Scheduling=20 > collection=20 > removes/(re)creates/updates > 16:34:29,205 DEBUG SessionImpl:1617 - Flushed: 3 insertions,=20 > 0 updates, 0=20 > deletions to 3 objects > 16:34:29,205 DEBUG SessionImpl:1622 - Flushed: 0=20 > (re)creations, 0 updates,=20 > 0 removals to 0 collections > 16:34:29,205 DEBUG SessionImpl:1652 - Executing > 16:34:29,205 DEBUG MultiTableEntityPersister:484 - Inserting entity:=20 > cirrus.hibernate.test.Multi#123 > 16:34:29,205 DEBUG MultiTableEntityPersister:485 - Version: 0=20 > 16:34:29,215 DEBUG BatcherImpl:109 - 1 open=20 > PreparedStatements 16:34:29,215 DEBUG SessionFactoryImpl:469=20 > - prepared statement get: insert=20 > into rootclass ( countX, name, address, dateX, id_ ) values=20 > ( ?, ?, ?, ?, ? ) 16:34:29,215 DEBUG=20 > PreparedStatementCache:67 - Preparing statement: insert=20 > into rootclass ( countX, name, address, dateX, id_ ) values=20 > ( ?, ?, ?, ?, ? ) 16:34:29,225 DEBUG BatcherImpl:109 - 2 open=20 > PreparedStatements 16:34:29,225 DEBUG SessionFactoryImpl:469=20 > - prepared statement get: insert=20 > into nonleafsubclass ( extraProp, other2, po, cal, floaty,=20 > sid ) values (=20 > ?, ?, ?, ?, ?, ? ) > 16:34:29,225 DEBUG PreparedStatementCache:67 - Preparing=20 > statement: insert=20 > into nonleafsubclass ( extraProp, other2, po, cal, floaty,=20 > sid ) values (=20 > ?, ?, ?, ?, ?, ? ) > 16:34:29,235 DEBUG MultiTableEntityPersister:386 -=20 > Dehydrating entity:=20 > cirrus.hibernate.test.Multi#123 > 16:34:29,275 DEBUG JDBCExceptionReporter:33 - SQL Exception > com.inzoom.adojni.ComException: [Microsoft][ODBC Microsoft Access=20 > Driver]Optional feature not implemented in Microsoft OLE DB=20 > Provider for=20 > ODBC Drivers code=3D3105 Type=3D1 > at com.inzoom.ado.Command.jniExecute(Native Method) > at com.inzoom.ado.Command.execute(Command.java:39) > at com.inzoom.ado.Command.executeUpdate(Command.java:51) > at com.inzoom.ado.Command.executeUpdate(Command.java:42) > at=20 > com.inzoom.jdbcado.PreparedStatement.executeUpdate(PreparedSta > tement.java:81) > at=20 > cirrus.hibernate.persister.MultiTableEntityPersister.insert(Mu ltiTableEntityPersister.java:501) > at=20 > cirrus.hibernate.impl.ScheduledInsertion.execute(ScheduledInse > rtion.java:20) > at=20 > cirrus.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:1674) > at=20 > cirrus.hibernate.impl.SessionImpl.execute(SessionImpl.java:1654) > at=20 > cirrus.hibernate.impl.SessionImpl.flush(SessionImpl.java:1599) > at=20 > cirrus.hibernate.transaction.JDBCTransaction.commit(JDBCTransa > ction.java:51) > at=20 > cirrus.hibernate.test.MultiTableTest.testMultiTable(MultiTable > Test.java:38) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at=20 > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess > orImpl.java:39) > at=20 > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth > odAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at junit.framework.TestCase.runTest(TestCase.java:154) > at junit.framework.TestCase.runBare(TestCase.java:127) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:118) > at junit.framework.TestSuite.runTest(TestSuite.java:208) > at junit.framework.TestSuite.run(TestSuite.java:203) > at junit.swingui.TestRunner$16.run(TestRunner.java:623) > 16:34:29,275 WARN JDBCExceptionReporter:35 - SQL Error:=20 > 3105, SQLState: 16:34:29,295 ERROR JDBCExceptionReporter:42 -=20 > [Microsoft][ODBC Microsoft=20 > Access Driver]Optional feature not implemented > 16:34:29,295 DEBUG PreparedStatementCache:91 - recaching=20 > 16:34:29,295 DEBUG PreparedStatementCache:126 - Total=20 > checked-out statements: 1 16:34:29,295 DEBUG=20 > PreparedStatementCache:127 - Checked out: [insert into=20 > nonleafsubclass ( extraProp, other2, po, cal, floaty, sid )=20 > values ( ?, ?,=20 > ?, ?, ?, ? )] > 16:34:29,295 DEBUG PreparedStatementCache:91 - recaching=20 > 16:34:29,295 DEBUG PreparedStatementCache:126 - Total=20 > checked-out statements: 0 16:34:29,295 DEBUG=20 > PreparedStatementCache:127 - Checked out: [] 16:34:29,305=20 > DEBUG SessionImpl:366 - transaction completion 16:34:29,325=20 > DEBUG SessionImpl:2428 - Running Session.finalize()=20 > 16:34:29,325 DEBUG SessionImpl:366 - transaction completion=20 > 16:34:29,325 WARN SessionImpl:2438 - Unclosed connection >=20 > actually I used to get > =09 > ODBC Microsoft Access Driver]Optional feature not=20 > implemented in=20 > Microsoft OLE DB Provider for ODBC >=20 > in my applications too, but by setting >=20 > =09 > getDefaultProperties().setProperty(Environment.OUTER_JOIN, "false"); >=20 > I had spelled the evil, but it reappeared in the tests. Help ! bye >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility=20 > Learn to use your power at OSDN's High Performance Computing=20 > Channel http://hpc.devchannel.org/=20 > _______________________________________________ > hibernate-devel mailing list hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel >=20 ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: Pietro P. <de...@op...> - 2002-12-14 15:49:13
|
hi, following the suggestion of our one of the few, I tried to test the above dialect, with non glorious results (86 failures out of 91 :-( ). To proceeded I have focused only on MultiTableTest. The first reason is that I have tested the dialect in my applications with string assigned identifiers, and there seemed to be some problems with native identifiers: <id type="long" column="id_" > <generator class="native"/> </id> create table rootclass ( id_ INTEGER IDENTITY NOT NULL, countX INTEGER not null, name VARCHAR(255) null, address VARCHAR(255) null, dateX DATETIME null, parent INTEGER null, primary key (id_) ) Unsuccessful: [Microsoft][ODBC Microsoft Access Driver] Syntax error in CREATE TABLE statement. but if I state it as <id type="long" column="id_" > <generator class="hilo.long"/> </id> create table rootclass ( id_ INTEGER not null, countX INTEGER not null, name VARCHAR(255) null, address VARCHAR(255) null, dateX DATETIME null, parent INTEGER null, primary key (id_) ) the table is created fine. So I guess that its the IDENTITY keyword that irritates access. and I mended MsAccessDialect with: public String getIdentityColumnString() { //return "IDENTITY NOT NULL"; return "NOT NULL"; } Then all db schema operations proceed fine for this test (not for the others, I believe because of filed names, but I'll try this later). The next problem for this test is that I get this monstruous: 16:34:26,912 DEBUG DriverManagerConnectionProvider:97 - returning connection to pool 16:34:26,942 DEBUG SessionFactoryImpl:113 - Instantiating session factory 16:34:26,942 INFO Dialect:37 - Using dialect: cirrus.hibernate.sql.MSAccessDialect 16:34:26,942 INFO DriverManagerConnectionProvider:36 - Hibernate connection pool size: 2 16:34:26,952 INFO DriverManagerConnectionProvider:65 - Using driver: com.inzoom.jdbcado.Driver at URL: jdbc:izmado:IzmDllPath=E:\cvs_out\teamwork\html\WEB-INF\lib\IzmJniAdo.dll;IzmRoyaltyFree=XXXXXXXX;Provider=MSDASQL;Driver={Microsoft Access Driver (*.mdb)};Dbq=e:\cvs_out\teamwork\data\teamwork_ol.mdb 16:34:26,952 INFO DriverManagerConnectionProvider:66 - Connection properties: {user=admin, password=} 16:34:26,962 INFO PreparedStatementCache:49 - prepared statement cache size: 100 16:34:26,962 INFO SessionFactoryImpl:144 - Use outer join fetching: false 16:34:26,972 DEBUG DriverManagerConnectionProvider:78 - Opening new JDBC connection 16:34:26,982 DEBUG DriverManagerConnectionProvider:89 - Created connection to: jdbc:izmado:IzmDllPath=E:\cvs_out\teamwork\html\WEB-INF\lib\IzmJniAdo.dll;IzmRoyaltyFree=643122985;Provider=MSDASQL;Driver={Microsoft Access Driver (*.mdb)};Dbq=e:\cvs_out\teamwork\data\teamwork_ol.mdb, Isolation Level: 2 16:34:27,002 DEBUG DriverManagerConnectionProvider:97 - returning connection to pool 16:34:27,002 INFO SessionFactoryImpl:167 - Use scrollable result sets: true 16:34:28,935 DEBUG SessionFactoryObjectFactory:39 - initializing class SessionFactoryObjectFactory 16:34:28,955 DEBUG SessionFactoryObjectFactory:76 - registered: 40288086f21dae9100f21dae9f470000 (unnamed) 16:34:28,965 INFO SessionFactoryObjectFactory:82 - no JDNI name configured 16:34:28,975 INFO SessionFactoryImpl:261 - Query language substitutions: {no='N', true=1, yes='Y', false=0} 16:34:28,975 INFO SessionFactoryImpl:264 - Query language imports: cirrus.hibernate.test 16:34:28,975 DEBUG SessionFactoryImpl:276 - Instantiated session factory 16:34:29,125 DEBUG SessionImpl:332 - opened session 16:34:29,125 DEBUG JDBCTransaction:34 - begin 16:34:29,125 DEBUG DriverManagerConnectionProvider:73 - Using cached JDBC connection 16:34:29,135 DEBUG SessionImpl:521 - saving [cirrus.hibernate.test.Multi#123] 16:34:29,185 DEBUG SessionImpl:521 - saving [cirrus.hibernate.test.Simple#1234] 16:34:29,185 DEBUG SessionImpl:521 - saving [cirrus.hibernate.test.SubMulti#2] 16:34:29,185 DEBUG JDBCTransaction:48 - commit 16:34:29,185 DEBUG SessionImpl:1605 - flushing session 16:34:29,185 DEBUG SessionImpl:1682 - Flushing entities and processing referenced collections 16:34:29,205 DEBUG SessionImpl:1874 - Processing unreferenced collections 16:34:29,205 DEBUG SessionImpl:1898 - Scheduling collection removes/(re)creates/updates 16:34:29,205 DEBUG SessionImpl:1617 - Flushed: 3 insertions, 0 updates, 0 deletions to 3 objects 16:34:29,205 DEBUG SessionImpl:1622 - Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections 16:34:29,205 DEBUG SessionImpl:1652 - Executing 16:34:29,205 DEBUG MultiTableEntityPersister:484 - Inserting entity: cirrus.hibernate.test.Multi#123 16:34:29,205 DEBUG MultiTableEntityPersister:485 - Version: 0 16:34:29,215 DEBUG BatcherImpl:109 - 1 open PreparedStatements 16:34:29,215 DEBUG SessionFactoryImpl:469 - prepared statement get: insert into rootclass ( countX, name, address, dateX, id_ ) values ( ?, ?, ?, ?, ? ) 16:34:29,215 DEBUG PreparedStatementCache:67 - Preparing statement: insert into rootclass ( countX, name, address, dateX, id_ ) values ( ?, ?, ?, ?, ? ) 16:34:29,225 DEBUG BatcherImpl:109 - 2 open PreparedStatements 16:34:29,225 DEBUG SessionFactoryImpl:469 - prepared statement get: insert into nonleafsubclass ( extraProp, other2, po, cal, floaty, sid ) values ( ?, ?, ?, ?, ?, ? ) 16:34:29,225 DEBUG PreparedStatementCache:67 - Preparing statement: insert into nonleafsubclass ( extraProp, other2, po, cal, floaty, sid ) values ( ?, ?, ?, ?, ?, ? ) 16:34:29,235 DEBUG MultiTableEntityPersister:386 - Dehydrating entity: cirrus.hibernate.test.Multi#123 16:34:29,275 DEBUG JDBCExceptionReporter:33 - SQL Exception com.inzoom.adojni.ComException: [Microsoft][ODBC Microsoft Access Driver]Optional feature not implemented in Microsoft OLE DB Provider for ODBC Drivers code=3105 Type=1 at com.inzoom.ado.Command.jniExecute(Native Method) at com.inzoom.ado.Command.execute(Command.java:39) at com.inzoom.ado.Command.executeUpdate(Command.java:51) at com.inzoom.ado.Command.executeUpdate(Command.java:42) at com.inzoom.jdbcado.PreparedStatement.executeUpdate(PreparedStatement.java:81) at cirrus.hibernate.persister.MultiTableEntityPersister.insert(MultiTableEntityPersister.java:501) at cirrus.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:20) at cirrus.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:1674) at cirrus.hibernate.impl.SessionImpl.execute(SessionImpl.java:1654) at cirrus.hibernate.impl.SessionImpl.flush(SessionImpl.java:1599) at cirrus.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:51) at cirrus.hibernate.test.MultiTableTest.testMultiTable(MultiTableTest.java:38) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.swingui.TestRunner$16.run(TestRunner.java:623) 16:34:29,275 WARN JDBCExceptionReporter:35 - SQL Error: 3105, SQLState: 16:34:29,295 ERROR JDBCExceptionReporter:42 - [Microsoft][ODBC Microsoft Access Driver]Optional feature not implemented 16:34:29,295 DEBUG PreparedStatementCache:91 - recaching 16:34:29,295 DEBUG PreparedStatementCache:126 - Total checked-out statements: 1 16:34:29,295 DEBUG PreparedStatementCache:127 - Checked out: [insert into nonleafsubclass ( extraProp, other2, po, cal, floaty, sid ) values ( ?, ?, ?, ?, ?, ? )] 16:34:29,295 DEBUG PreparedStatementCache:91 - recaching 16:34:29,295 DEBUG PreparedStatementCache:126 - Total checked-out statements: 0 16:34:29,295 DEBUG PreparedStatementCache:127 - Checked out: [] 16:34:29,305 DEBUG SessionImpl:366 - transaction completion 16:34:29,325 DEBUG SessionImpl:2428 - Running Session.finalize() 16:34:29,325 DEBUG SessionImpl:366 - transaction completion 16:34:29,325 WARN SessionImpl:2438 - Unclosed connection actually I used to get ODBC Microsoft Access Driver]Optional feature not implemented in Microsoft OLE DB Provider for ODBC in my applications too, but by setting getDefaultProperties().setProperty(Environment.OUTER_JOIN, "false"); I had spelled the evil, but it reappeared in the tests. Help ! bye |
From: Gavin K. <ga...@ap...> - 2002-12-14 06:54:13
|
Thanks :) Have you tried running the Hibernate test suites to see how much = functionality can be supported on Access? ----- Original Message -----=20 From: Pietro Polsinelli=20 To: hib...@li...=20 Sent: Saturday, December 14, 2002 2:01 AM Subject: [Hibernate] microsoft access dialect hi, I have began developing a dialect for working with=20 Microsoft Access using=20 InfoZoom JDBC driver.=20 I hope it will be of some use. I do NOT claim that this will work in = general; it just works for my current applications. = _________________________________________________________________________= __ in hibernate.properties I added:=20 ## MSAccess hibernate.dialect cirrus.hibernate.sql.MSAccessDialect=20 hibernate.connection.driver_class com.inzoom.jdbcado.Driver=20 hibernate.connection.url = jdbc:izmado:IzmDllPath=3DE:\\cvs_out\\teamwork\\html\\WEB-INF\\lib\\IzmJn= iAdo.dll;Provider=3DMSDASQL;Driver=3D{Microsoft Access Driver = (*.mdb)};Dbq=3De:\\cvs_out\\teamwork\\data\\teamwork_ol.mdb=20 hibernate.connection.username admin=20 hibernate.connection.password=20 here if you have a licensed version you will add in the url also=20 =20 IzmRoyaltyFree=3D[license number] actually in my projects infozoom driver works also with hibernate on = sql server. = _________________________________________________________________________= __ the dialect class public class MSAccessDialect extends Dialect { public MSAccessDialect() { super(); register( Types.BIT, "BIT" );=20 register( Types.BIGINT, "INTEGER" ); register( Types.SMALLINT, "SMALLINT" ); register( Types.TINYINT, "TINYINT" ); register( Types.INTEGER, "INTEGER" ); register( Types.CHAR, "CHARACTER(1)" ); register( Types.VARCHAR, "VARCHAR($l)" ); register( Types.FLOAT, "FLOAT" ); register( Types.DOUBLE, "DOUBLE PRECISION" ); register( Types.DATE, "DATETIME" ); register( Types.TIME, "DATETIME" ); register( Types.TIMESTAMP, "DATETIME" ); register( Types.VARBINARY, "VARBINARY($l)" ); register( Types.NUMERIC, "DECIMAL(19,$l)" ); = getDefaultProperties().setProperty(Environment.OUTER_JOIN, "false"); = getDefaultProperties().setProperty(Environment.STATEMENT_BATCH_SIZE, = NO_BATCH); } public String getAddColumnString() { return "add"; } public String getNullColumnString() { return " null"; } public boolean qualifyIndexName() { return false; } =20 public boolean supportsForUpdate() { return false; } public boolean supportsIdentityColumns() { return true; } public String getIdentitySelectString() { return "select @@identity"; } public String getIdentityColumnString() { return "IDENTITY NOT NULL"; } public String getNoColumnsInsertString() { return "DEFAULT VALUES"; } } - in order to make SchemaUpdater work I had to add in method = "execute": connection.commit(); before=20 connection.close();=20 I will test it more in the near future. bye, peterpumpkin=20 |
From: Colin E. <ce...@mo...> - 2002-12-14 03:08:10
|
Hi, I need to have a LifeCycle callback for when an object is detected to be dirty during a flush, basically at the same point that Interceptor.onFlushDirty() is called. I'm trying to track changes to persistent objects and log changes to a database table, so I want to use the Session object inside the transaction to do this, and LifeCycle currently doesn't give notification of flushes. Looking at the code, I would add LifeCycle callback in SessionImpl.flushEntities(). Am I missing anywhere else that an update could happen? Also, is it worth while for me to submit this as a patch? Changing the LifeCycle interface would break existing usages, but I could extend it to LifeCycleFlush or something and add the callback in SessionImpl.flushEntities() if it would be useful to other people. Thanks Colin -- Colin Evans Mobilesys www.mobilesys.com |
From: Pietro P. <de...@op...> - 2002-12-13 15:02:33
|
hi, I have began developing a dialect for working with Microsoft Access using InfoZoom JDBC driver. I hope it will be of some use. I do NOT claim that this will work in general; it just works for my current applications. ___________________________________________________________________________ in hibernate.properties I added: ## MSAccess hibernate.dialect cirrus.hibernate.sql.MSAccessDialect hibernate.connection.driver_class com.inzoom.jdbcado.Driver hibernate.connection.url jdbc:izmado:IzmDllPath=E:\\cvs_out\\teamwork\\html\\WEB-INF\\lib\\IzmJniAdo.dll;Provider=MSDASQL;Driver={Microsoft Access Driver (*.mdb)};Dbq=e:\\cvs_out\\teamwork\\data\\teamwork_ol.mdb hibernate.connection.username admin hibernate.connection.password here if you have a licensed version you will add in the url also IzmRoyaltyFree=[license number] actually in my projects infozoom driver works also with hibernate on sql server. ___________________________________________________________________________ the dialect class public class MSAccessDialect extends Dialect { public MSAccessDialect() { super(); register( Types.BIT, "BIT" ); register( Types.BIGINT, "INTEGER" ); register( Types.SMALLINT, "SMALLINT" ); register( Types.TINYINT, "TINYINT" ); register( Types.INTEGER, "INTEGER" ); register( Types.CHAR, "CHARACTER(1)" ); register( Types.VARCHAR, "VARCHAR($l)" ); register( Types.FLOAT, "FLOAT" ); register( Types.DOUBLE, "DOUBLE PRECISION" ); register( Types.DATE, "DATETIME" ); register( Types.TIME, "DATETIME" ); register( Types.TIMESTAMP, "DATETIME" ); register( Types.VARBINARY, "VARBINARY($l)" ); register( Types.NUMERIC, "DECIMAL(19,$l)" ); getDefaultProperties().setProperty(Environment.OUTER_JOIN, "false"); getDefaultProperties().setProperty(Environment.STATEMENT_BATCH_SIZE, NO_BATCH); } public String getAddColumnString() { return "add"; } public String getNullColumnString() { return " null"; } public boolean qualifyIndexName() { return false; } public boolean supportsForUpdate() { return false; } public boolean supportsIdentityColumns() { return true; } public String getIdentitySelectString() { return "select @@identity"; } public String getIdentityColumnString() { return "IDENTITY NOT NULL"; } public String getNoColumnsInsertString() { return "DEFAULT VALUES"; } } - in order to make SchemaUpdater work I had to add in method "execute": connection.commit(); before connection.close(); I will test it more in the near future. bye, peterpumpkin |
From: Konstantin P. <kpr...@ya...> - 2002-12-13 09:12:21
|
Hi all, Yesterday I put together a small demo showing hibernate in action: 1. XDoclet generated mappings & service descriptor 2. Session bean accessing hibernate 3. Small client. This works with JBoss. Schema snipper for hypersonic: ---%<-------- CREATE TABLE HIBERNATE_CUSTOMER(ID INTEGER NOT NULL IDENTITY PRIMARY KEY,CUSTOMERDESCRIPTION VARCHAR,CUSTOMERNAME VARCHAR,CUSTOMERNUMBER VARCHAR,UNIQUE(ID)) CREATE UNIQUE INDEX PK_HIBERNATE_CUSTOMER ON HIBERNATE_CUSTOMER(ID) -----%<--------- This demo will need current CVS version of xdoclet, and also current hibernate version. ant deploy compiles and depoys SessionBean & hibernate service, then you can use startup script in client directory. YOu can download it from: http://www.pribluda.de/hibernate-test.tar.gz regards, ===== Konstantin Priblouda ( ko5tik ) Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
From: Mark W. <mor...@SM...> - 2002-12-12 21:32:02
|
Gavin, I see you've commited a Clob and Blob type! What's the status on them? Are they working yet? -Mark |
From: Gavin K. <Gav...@ex...> - 2002-12-12 09:10:29
|
Silly me. Thanks. > -----Original Message----- > From: Mark Woon [mailto:mor...@SM...]=20 > Sent: Thursday, 12 December 2002 7:00 PM > To: Hibernate Mailing List > Subject: [Hibernate] CVS doesn't compile >=20 >=20 > FYI, >=20 > The tree in CVS doesn't compile: >=20 > 1) The TransactionManagerLookup interface implements=20 > getUserTransactionName(). > 2) JTATransactionFactory has a bad variable name. >=20 > Attached patch fixes these problems. >=20 > -Mark >=20 >=20 ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: Mark W. <mor...@SM...> - 2002-12-12 08:00:10
|
FYI, The tree in CVS doesn't compile: 1) The TransactionManagerLookup interface implements getUserTransactionName(). 2) JTATransactionFactory has a bad variable name. Attached patch fixes these problems. -Mark |
From: <tr...@th...> - 2002-12-11 18:42:29
|
Just noticed i didn't send this to the list.... ---- Original Message ---- From: tr...@th... Sent: 2002-12-10 To: Gavin King <Gav...@ex...> Subject: RE: RE: [Hibernate] int ids for mysql Ok, made new MySQLDialectInt, seems to work fine now, I've attached it for commit. Might also want to add this to hibernate.properties. # Use MySQLDialectInt if you want to use int id fields in your classes instead of long #hibernate.dialect cirrus.hibernate.sql.MySQLDialectInt Travis ---- Original Message ---- From: Gavin King <Gav...@ex...> Sent: 2002-12-10 To: tr...@th..., hib...@li... Subject: RE: [Hibernate] int ids for mysql You could easily implement this as an alternative Dialect (ie. your second suggestion). HSQLDialect already uses integer as the type for native id generation, so you can use that as a model. > -----Original Message----- > From: tr...@th... [mailto:tr...@th...] > Sent: Wednesday, 11 December 2002 12:53 PM > To: hib...@li... > Subject: [Hibernate] int ids for mysql > > > I just wanted to start discussion on this topic as it is a > necessity as to whether I can use Hibernate to start > converting one of our projects. > > A couple of ideas after skimming through the code: > 1. Cast to identiferType right before calling the > ReflectHelper.set.... I believe that is in setIdentifier. 2. > Have another MysqlDialect or whatever it is that makes the > ids longs in the first place. Have MysqlDialectInt or something. > > Not sure if these are possible or what, just throwing out > some ideas. > > Travis > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing > Channel http://hpc.devchannel.org/ > _______________________________________________ > hibernate-devel mailing list hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: Patrick L. <pli...@ci...> - 2002-12-11 17:34:36
|
(resend, the first attempt went to the wrong list) Joel, I believe that Justin Stepka (correct me if I'm wrong, Justin) has written a Hibernate PropertySet implementation. -Pat ----- Original Message ----- From: "Joel Rosi-Schwartz" <Joe...@Et...> To: <ope...@li...>; "hibernate list" <hib...@li...> Cc: "Patrick Lightbody" <pli...@ci...>; "Gavin King" <ga...@ap...>; "Mike Cannon-Brookes" <mi...@at...> Sent: Saturday, December 07, 2002 2:01 PM Subject: Details of hibernate provider for OsUser > I have been looking over the existing OsUser providers and considering > the best approach for creating a hibernate provider. There are a two > issues I would like to have some feedback on. > > First off I think that it will be worth the effort to keep it as > architecturally generic as possible. Towards that end I am considering > using the properties that are passed into the Provider's init() to > retrieve a JNDI name for the SessionFactory. Is this sufficiently > generic for most user's or does it have to be even more flexible? > > Second, I am a bit concerned at the usage of the PropertySetManager for > storing the user's profile. My first consideration is that it does not > fit neatly into the architecture of the applications that I plan to use > this for. I could get over that one and would not mind terribly creating > two version; one that used the PropertSetManager and one that stored the > data directly in my application's objects. What I have a hard time > buying into is the extra work to create the Hibernate Propertyset > implementation. If I am not mistaken Gavin expressed willingness to do > that some time back if someone else did... Did that ever get done? If > not is someone willing to bite off that part of this task? > > - joel |
From: Patrick L. <pli...@ci...> - 2002-12-11 17:31:52
|
Joel, I believe that Justin Stepka (correct me if I'm wrong, Justin) has written a Hibernate PropertySet implementation. -Pat ----- Original Message ----- From: "Joel Rosi-Schwartz" <Joe...@Et...> To: <ope...@li...>; "hibernate list" <hib...@li...> Cc: "Patrick Lightbody" <pli...@ci...>; "Gavin King" <ga...@ap...>; "Mike Cannon-Brookes" <mi...@at...> Sent: Saturday, December 07, 2002 2:01 PM Subject: Details of hibernate provider for OsUser > I have been looking over the existing OsUser providers and considering > the best approach for creating a hibernate provider. There are a two > issues I would like to have some feedback on. > > First off I think that it will be worth the effort to keep it as > architecturally generic as possible. Towards that end I am considering > using the properties that are passed into the Provider's init() to > retrieve a JNDI name for the SessionFactory. Is this sufficiently > generic for most user's or does it have to be even more flexible? > > Second, I am a bit concerned at the usage of the PropertySetManager for > storing the user's profile. My first consideration is that it does not > fit neatly into the architecture of the applications that I plan to use > this for. I could get over that one and would not mind terribly creating > two version; one that used the PropertSetManager and one that stored the > data directly in my application's objects. What I have a hard time > buying into is the extra work to create the Hibernate Propertyset > implementation. If I am not mistaken Gavin expressed willingness to do > that some time back if someone else did... Did that ever get done? If > not is someone willing to bite off that part of this task? > > - joel |
From: Joel Rosi-S. <Joe...@Et...> - 2002-12-11 11:54:54
|
The hibernate module is back into cvs properly. PLEASE NOTE: I have moved everything around to get the package structures right and to get the test/samples in the right place. This means that there are now several empty directories in the tree. If you do not use cvs -P to prune the tree you will end up with these empty directories that are no longer used: cirrus cirrus/hibernate cirrus/hibernate/tools cirrus/hibernate/tools/xdoclet cirrus/hibernate/tools/xdoclet/resources cirrus/hibernate/tools/xdoclet/test xdoclet/modulers/cirrus xdoclet/modulers/cirrus/hibernate xdoclet/modulers/cirrus/hibernate/test xdoclet/modules/cirrus xdoclet/modules/cirrus/hibernate xdoclet/modules/cirrus/hibernate/resources What would be ideal is we could get a SF admin to really remove them from the repository. Is that possible? In the process I have fixed a couple of problems: * the names of the includes in the xdt are now correct, so the mappings should be generated in full; * included the minor fix that Gavin made to hibernate.xdt which fixed an unbalanced quote; * modified the samples build file so that the hibenate tests are run. Apologies for any inconveniences this all may have caused. - joel |
From: Joel Rosi-S. <Joe...@Et...> - 2002-12-11 08:35:19
|
Gavin King wrote: > Joel, I made a small fix to hibernate.xdt > <http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/xdoclet/xdoclet/modules/hibernate/src/cirrus/hibernate/tools/xdoclet/resources/Attic/hibernate.xdt#dirlist> > in the Hibernate CVS last night, but apparently you didn't notice > before importing to XDoclet CVS. It was just a missing endquote. Hmm...really I should have checked before doing the import; sorry about that. I will patch the XDoclet cvs. > Gavin > > P.S. Are we going to rename the package to xdoclet.modules.hibernate now? Actually yesterday I renamed to xdoclet.modules.cirrus.hibernate but I decided last night that was unecessarily long so will shorten it this morning. - joel |
From: Gavin K. <Gav...@ex...> - 2002-12-11 03:26:50
|
You could easily implement this as an alternative Dialect (ie.=20 your second suggestion). HSQLDialect already uses integer as the type for native id generation, so you can use that as a=20 model. > -----Original Message----- > From: tr...@th... [mailto:tr...@th...]=20 > Sent: Wednesday, 11 December 2002 12:53 PM > To: hib...@li... > Subject: [Hibernate] int ids for mysql >=20 >=20 > I just wanted to start discussion on this topic as it is a=20 > necessity as to whether I can use Hibernate to start=20 > converting one of our projects. >=20 > A couple of ideas after skimming through the code: > 1. Cast to identiferType right before calling the=20 > ReflectHelper.set.... I believe that is in setIdentifier. 2.=20 > Have another MysqlDialect or whatever it is that makes the=20 > ids longs in the first place. Have MysqlDialectInt or something. >=20 > Not sure if these are possible or what, just throwing out=20 > some ideas. =20 >=20 > Travis=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility=20 > Learn to use your power at OSDN's High Performance Computing=20 > Channel http://hpc.devchannel.org/=20 > _______________________________________________ > hibernate-devel mailing list hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel >=20 ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: <tr...@th...> - 2002-12-11 02:01:15
|
I just wanted to start discussion on this topic as it is a necessity as to whether I can use Hibernate to start converting one of our projects. A couple of ideas after skimming through the code: 1. Cast to identiferType right before calling the ReflectHelper.set.... I believe that is in setIdentifier. 2. Have another MysqlDialect or whatever it is that makes the ids longs in the first place. Have MysqlDialectInt or something. Not sure if these are possible or what, just throwing out some ideas. Travis |
From: Gavin K. <Gav...@ex...> - 2002-12-10 23:48:23
|
Joel, I made a small fix to hibernate.xdt <http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/xdoclet/xdoclet/modules/ hibernate/src/cirrus/hibernate/tools/xdoclet/resources/Attic/hibernate.x dt#dirlist> in the Hibernate CVS last night, but apparently you didn't notice before importing to XDoclet CVS. It was just a missing endquote. =20 Gavin =20 P.S. Are we going to rename the package to xdoclet.modules.hibernate now? =20 =20 ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: Joel Rosi-S. <Joe...@Et...> - 2002-12-10 18:04:48
|
Okay, the refactoring is complete, tested and in cvs. Now we can move forward with the issues and new features :-) - joel Joel Rosi-Schwartz wrote: > I have just performed the intial check in of the hibernate module. I > successfully built XDoclet so at least it is not distrubtive. This > check in does *not* reflect the refactoring of the package structure > to xdoclet.modules.hibernate. I have just performed the refactoring > and I am in the process of rebuilding XDoclet to test that the > everything still builds okay. Once I have a good build I will check in > again. > > - joe; > > > > ------------------------------------------------------- > 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 > > |