FW: RE: RE: [Hibernate] int ids for mysql
Just noticed i didn't send this to the list
Original Message
From: [EMAIL PROTECTED]
Sent: 2002-12-10
To: Gavin King <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
Sent: 2002-12-10
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 11 December 2002 12:53 PM
> To: [EMAIL PROTECTED]
> 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 [EMAIL PROTECTED]
> 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 **
MySQLDialectInt[2].java
Description: Binary data
[Hibernate] Re: Details of hibernate provider for OsUser
(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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "hibernate list" <[EMAIL PROTECTED]> Cc: "Patrick Lightbody" <[EMAIL PROTECTED]>; "Gavin King" <[EMAIL PROTECTED]>; "Mike Cannon-Brookes" <[EMAIL PROTECTED]> 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 --- 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
[Hibernate] Re: Details of hibernate provider for OsUser
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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "hibernate list" <[EMAIL PROTECTED]> Cc: "Patrick Lightbody" <[EMAIL PROTECTED]>; "Gavin King" <[EMAIL PROTECTED]>; "Mike Cannon-Brookes" <[EMAIL PROTECTED]> 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 --- 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 11 December 2002 12:53 PM
> To: [EMAIL PROTECTED]
> 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 [EMAIL PROTECTED]
> 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 **
---
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel
[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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
RE: [Hibernate] Re: [Xdoclet-devel] The xdoclet hibernate module has been checked into XDoclect cvs.
Title: Message
Joel,
I made a small fix to hibernate.xdt in the Hibernate CVS last night, but apparently you didn't notice before
importing to XDoclet CVS. It was just a missing
endquote.
Gavin
P.S.
Are we going to rename the package to xdoclet.modules.hibernate
now?
** 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 **
[Hibernate] Hibernate back in cvs
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
Re: [Hibernate] Re: [Xdoclet-devel] The xdoclet hibernate module has been checked into XDoclect cvs.
Gavin King wrote: Message Joel, I made a small fix to hibernate.xdt 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
