Re: [Hibernate] API stability in SchemaUpdate
Max, I appreciate all your responses, but I don't think we're getting very far. I started this thread because between 2.0.0 to 2.0.1 to 2.0.2 the generateSchemaUpdateScript (the key code in SchemaUpdate) is changing signatures. In 2.0.1 it changed to JdbcDatabaseInfo, and now it's DatabaseMetadata (an unfortunate name since it's just a capitalization difference from java.sql.DatabaseMetaData). Max Rydahl Andersen wrote: I don't even know what JdbcDatabaseInfo is (can't find it in my hibernate or jdk source tree ;) - so, I reckon the generateSchemaUpdateScript is "stabilized"but i would say that is not that big a change to cope with IMHO ;) Are you the CVS user 'oneovthafew'? This is the person making all the mods to this code, so he/she would be able to explain the changes and plans. Well - it might not be a solid barrier, but whatever is part of the generated public javadoc is the public api ...or even more so, what is NOT part of the generated public javadoc is not part of the public api ;) I'm not sure what you mean. Configuration is part of the published javadocs. It's method generateSchemaUpdateScript is in the published javadoc. This method's signature depends on classes in the tool package that are not published, and this method's signature keeps changing. So are you saying the code we're discussing is in the public api or not? -- Serge Knystautas President Lokitech >> software . strategy . design >> http://www.lokitech.com p. 301.656.5501 e. [EMAIL PROTECTED] --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] MS SQL performance and Unicode
Gary Evesson wrote: Am I the only person in the world who didn't know what happens if you use VARCHAR's with Java and the MS SQL JDBC driver? It seems unlikely because I can find no mention of this in the list archives or the like. It's not just the MS SQL JDBC Driver... we use the Inet Software one, and they have a similar JDBC URL configuration option. Yes, it does suck, but I'm not sure how other databases are addressing this need for unicode support. Maybe these JDBC drivers should be expecting ascii as the default instead of unicode first. -- Serge Knystautas President Lokitech >> software . strategy . design >> http://www.lokitech.com p. 301.656.5501 e. [EMAIL PROTECTED] --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
[Hibernate] gavin's blog :)
hi, i was shocked to learn that Gavin was hired at microsoft... and he even started a blog.. http://blogs.gotdotnet.com/gking/ :) v. --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] gavin's blog :)
MS is notoriously after walking brain like Gavin other committers. So I am not surprise if this is true. Gavin can be a BIG excellent added value to MS ObjectSpace. Gavin, can the MS money buy you out? -D - - Original Message - From: "Viktor Szathmary" <[EMAIL PROTECTED]> To: "Hibernat-Dev" <[EMAIL PROTECTED]> Sent: Saturday, August 23, 2003 7:56 PM Subject: [Hibernate] gavin's blog :) > hi, > > i was shocked to learn that Gavin was hired at microsoft... and he even > started a blog.. > > http://blogs.gotdotnet.com/gking/ > > :) > > v. > > > > --- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > ___ > hibernate-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] gavin's blog :)
Not that i think you are not aware of it, but I think i can for sure state that the Gavin King writing that blog is not Hibernate Gavin King ;) (first hint is that the blog is from UK, where as Gavin is a down-under mate) /max Dan Tran wrote: MS is notoriously after walking brain like Gavin other committers. So I am not surprise if this is true. Gavin can be a BIG excellent added value to MS ObjectSpace. Gavin, can the MS money buy you out? -D - - Original Message - From: "Viktor Szathmary" <[EMAIL PROTECTED]> To: "Hibernat-Dev" <[EMAIL PROTECTED]> Sent: Saturday, August 23, 2003 7:56 PM Subject: [Hibernate] gavin's blog :) hi, i was shocked to learn that Gavin was hired at microsoft... and he even started a blog.. http://blogs.gotdotnet.com/gking/ :) v. --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] API stability in SchemaUpdate
I appreciate all your responses, but I don't think we're getting very far. Well, i think we have found that the feature you want is usable - and as I see it already in there (as you can get the sql string[]). Your first posting said you were doing something special, and it was that "special" think I would like to know what was...now I know (you want to get SQL String[]'s instead of getting them executed or dumped to standard out) I started this thread because between 2.0.0 to 2.0.1 to 2.0.2 the generateSchemaUpdateScript (the key code in SchemaUpdate) is changing signatures. In 2.0.1 it changed to JdbcDatabaseInfo, and now it's DatabaseMetadata (an unfortunate name since it's just a capitalization difference from java.sql.DatabaseMetaData). I've just went into the CVS log and I find it hard to believe that it changed BACK to JdbcDataBaseInfo in 2.0.1 since it was included in 2.0, but deleted in 2.0.1. See http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/hibernate/Hibernate2/src/net/sf/hibernate/tool/hbm2ddl/ Are you the CVS user 'oneovthafew'? This is the person making all the mods to this code, so he/she would be able to explain the changes and plans. No, i'm "maxcsaucdk" the other dude messing around with the commits ;) "oneovthafew" is Gavin King. In the change comments (which is also available from the viewcvs above), you can see that JdbcDataBaseInfo was deleted Mon Jun 16 03:34:33 2003 UTC (2 months, 1 week ago) and that it never got a tag for 2.0.1 nor 2.0.2 - hence it was only included in 2.0.0 (and before) http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/hibernate/Hibernate2/src/net/sf/hibernate/tool/hbm2ddl/Attic/JdbcDatabaseInfo.java Well - it might not be a solid barrier, but whatever is part of the generated public javadoc is the public api ...or even more so, what is NOT part of the generated public javadoc is not part of the public api ;) I'm not sure what you mean. Configuration is part of the published javadocs. It's method generateSchemaUpdateScript is in the published javadoc. This method's signature depends on classes in the tool package that are not published, and this method's signature keeps changing. As I see it in the logs it has only changed once - not back and forth. I've also just downloaded version 2.0, 2.0.1 and 2.0.2 and that they reflect what I see in the cvs logs - in 2.0 it was JdbcDatabaseInfo in 2.0.1 and 2.0.2 it is DatabaseMetaData - so it has only changed once. So are you saying the code we're discussing is in the public api or not? I would say it is in the public API and that for some reason "oneovthafew" meant that DatabaseMetadata was a better name than JdbcDatabaseInfo. He can answer why, I cannot - but i can just say that it is a very minor change that only happend once ;) So, I can only state that I think it has stabilized and that we only change public API's (or any API for that matter) for a reason and with thought. (heck - some cool features are being "held back" because it will change some public api's) /max --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] gavin's blog :)
ehlo. Not that i think you are not aware of it, but I think i can for sure state that the Gavin King writing that blog is not Hibernate Gavin King ;) ... but does MS know that? dozen --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
[Hibernate] Mapping a custom Set implementation?
Hi all, I have a custom Set implementation that wraps a standard set, but makes sure that the inputs and outputs are of a specific class. This is causing me to get: java.lang.ClassCastException at net.sf.hibernate.type.SetType.wrap(SetType.java:27) at net.sf.hibernate.impl.SessionImpl.wrap(SessionImpl.java:2505) at net.sf.hibernate.impl.SessionImpl.wrap(SessionImpl.java:2445) Exceptions. I I change it from my RoleSet to just a regular Set, everything works fine. But I don't want to have a special setRoleSetHibernate(Set set) method when I have I have already setRoleSet(RoleSet). Is this where I have to write my own type? Below is my an extract from my hbm file. Thanks, Eric --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
RE: [Hibernate] MS SQL performance and Unicode
Also, I am working on this little issue, and I wanted to verify that the sendStringParametersAsUnicode=false string goes into the URL that you use to connect to the database, correct? jdbc:microsoft:sqlserver://[server]:1433;DatabaseName=[database name;SelectMethod=cursor;sendStringParametersAsUnicode=false Eric > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Serge > Knystautas > Sent: Sunday, August 24, 2003 4:48 AM > To: Hibernat-Dev > Subject: Re: [Hibernate] MS SQL performance and Unicode > > > Gary Evesson wrote: > > Am I the only person in the world who didn't know what > happens if you > > use VARCHAR's with Java and the MS SQL JDBC driver? It > seems unlikely > > because I can find no mention of this in the list archives > or the like. > > It's not just the MS SQL JDBC Driver... we use the Inet Software one, > and they have a similar JDBC URL configuration option. > > Yes, it does suck, but I'm not sure how other databases are > addressing > this need for unicode support. Maybe these JDBC drivers should be > expecting ascii as the default instead of unicode first. > > -- > Serge Knystautas > President > Lokitech >> software . strategy . design >> http://www.lokitech.com > p. 301.656.5501 > e. [EMAIL PROTECTED] > > > > --- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a > single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > at the same time. Free trial click > here:http://www.vmware.com/wl/offer/358/0 > ___ > hibernate-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/hibernate-devel --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
RE: [Hibernate] gavin's blog :)
Personally, I think that we just came across Gavin's secret, alternate identity. By day Gavin is simply good ol' Gavin, but in times of peril and distress, and when there's trouble afoot, he becomes, um, er, Gavin King? H... Sandeep. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Vladimir Dozen Sent: Sunday, August 24, 2003 4:57 AM Cc: Hibernat-Dev Subject: Re: [Hibernate] gavin's blog :) ehlo. > Not that i think you are not aware of it, but I think i can for sure > state that the Gavin King writing that blog is not Hibernate Gavin King > ;) ... but does MS know that? dozen --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] MS SQL performance and Unicode
Eric Pugh wrote: No, I can chime in, that I as well didn't know this. Out of curiosity, has anyone put together a unit test that I could run to demo the differences? Would this be something to add to hibernate, or is it too random? What kind of difference are you looking to demonstrate? I don't think hibernate can work around this since there's nothing (that I know) you can set differently on the prepared statement. It's just how the JDBC driver generates the SQL. You can pull up SQL Profiler and watch the JDBC driver prepare with NVARCHAR or VARCHAR. Maybe it is MS's fault... if you have an index on a VARCHAR and you query with an NVARCHAR parameter, it won't use the index. -- Serge Knystautas President Lokitech >>> software . strategy . design >> http://www.lokitech.com p. 301.656.5501 e. [EMAIL PROTECTED] --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] API stability in SchemaUpdate
Max Rydahl Andersen wrote: Well, i think we have found that the feature you want is usable - and as I see it already in there (as you can get the sql string[]). Your first posting said you were doing something special, and it was that "special" think I would like to know what was...now I know (you want to get SQL String[]'s instead of getting them executed or dumped to standard out) Thank you for your patience. I thought my original posting adequately explained what I was trying to do, but must have made assumptions and not said enough. generateSchemaUpdateScript (the key code in SchemaUpdate) is changing signatures. In 2.0.1 it changed to JdbcDatabaseInfo, and now it's DatabaseMetadata (an unfortunate name since it's just a capitalization difference from java.sql.DatabaseMetaData). I've just went into the CVS log and I find it hard to believe that it changed BACK to JdbcDataBaseInfo in 2.0.1 since it was included in 2.0, but deleted in 2.0.1. Hmmm. It's hard to argue with CVS logs. I know I've had to rewrite my code twice now and it related to the class renaming, but I must have just been doing something stupid that prompted one of those rewrites. So are you saying the code we're discussing is in the public api or not? I would say it is in the public API and that for some reason "oneovthafew" meant that DatabaseMetadata was a better name than JdbcDatabaseInfo. He can answer why, I cannot - but i can just say that it is a very minor change that only happend once ;) So, I can only state that I think it has stabilized and that we only change public API's (or any API for that matter) for a reason and with thought. (heck - some cool features are being "held back" because it will change some public api's) Thanks for the assurance. Have you looked into the tool JDiff? I created javadoc-like output that shows API changes between versions. Again appreciate your time sorting my issue out. -- Serge Knystautas President Lokitech >>> software . strategy . design >> http://www.lokitech.com p. 301.656.5501 e. [EMAIL PROTECTED] --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel