Re: [Hibernate] ImprovedNamingStrategy
Not really, You were mixing 2 different strategies, 1 for hbm and one for annotations which was by side effect possible, but very bad. I've merged the 2. ImprovedNS always had the semantic (2). Pablo Nussembaum wrote: I don't understand why 2 is unrelated, this version broke the backward compatibility. Until now if I use the xml configuration or annotations, hibernate generates the same db schema with this change this not true any more. Pablo Nussembaum Emmanuel Bernard wrote: 2) is unrelated. You were not able to work with custom NS in annotations before, you should consider writing an extension of EJB3NamingStrategy instead. Pablo Nussembaum wrote: I'm complaining :-P today I was trying to update from hibernate-3.1-rc2 y annotation-3.1-b6. I found 2 problems (I'm the ImprovedNamingStrategy): 1. The one your describing 2. Some JoinTables change the generated name. Example: @Entity @org.hibernate.annotations.Entity(mutable=false) @Table(name = "menu_item") public class MenuItem extends BusinessObject { private MenuItem parent; private List children; ... others methods ... @OneToMany(cascade = {CascadeType.ALL} @IndexColumn(name = "menu_position", base=1) public List getChildren() { return children; } } with revision rc2 the join table's name was "menu_item_menu_item" and with the 3.1-release is "menu_item_children". I prefer the old behavior. -- Pablo Nussembaum Gavin King wrote: Well, let's see if anyone complains... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Emmanuel Bernard Sent: Tuesday, December 20, 2005 7:06 AM To: Hibernate development Subject: [Hibernate] ImprovedNamingStrategy When working on the new naming strategy, I've broken the use of ImprovedNamingStrategy. now leads to /edit_status_edit_pid/ instead of /edit_pid. /Should I fix that for the sake of backward compatibility, or is it OK?/ / --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] ImprovedNamingStrategy
I don't understand why 2 is unrelated, this version broke the backward compatibility. Until now if I use the xml configuration or annotations, hibernate generates the same db schema with this change this not true any more. Pablo Nussembaum Emmanuel Bernard wrote: 2) is unrelated. You were not able to work with custom NS in annotations before, you should consider writing an extension of EJB3NamingStrategy instead. Pablo Nussembaum wrote: I'm complaining :-P today I was trying to update from hibernate-3.1-rc2 y annotation-3.1-b6. I found 2 problems (I'm the ImprovedNamingStrategy): 1. The one your describing 2. Some JoinTables change the generated name. Example: @Entity @org.hibernate.annotations.Entity(mutable=false) @Table(name = "menu_item") public class MenuItem extends BusinessObject { private MenuItem parent; private List children; ... others methods ... @OneToMany(cascade = {CascadeType.ALL} @IndexColumn(name = "menu_position", base=1) public List getChildren() { return children; } } with revision rc2 the join table's name was "menu_item_menu_item" and with the 3.1-release is "menu_item_children". I prefer the old behavior. -- Pablo Nussembaum Gavin King wrote: Well, let's see if anyone complains... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Emmanuel Bernard Sent: Tuesday, December 20, 2005 7:06 AM To: Hibernate development Subject: [Hibernate] ImprovedNamingStrategy When working on the new naming strategy, I've broken the use of ImprovedNamingStrategy. now leads to /edit_status_edit_pid/ instead of /edit_pid. /Should I fix that for the sake of backward compatibility, or is it OK?/ / --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] ImprovedNamingStrategy
2) is unrelated. You were not able to work with custom NS in annotations before, you should consider writing an extension of EJB3NamingStrategy instead. Pablo Nussembaum wrote: I'm complaining :-P today I was trying to update from hibernate-3.1-rc2 y annotation-3.1-b6. I found 2 problems (I'm the ImprovedNamingStrategy): 1. The one your describing 2. Some JoinTables change the generated name. Example: @Entity @org.hibernate.annotations.Entity(mutable=false) @Table(name = "menu_item") public class MenuItem extends BusinessObject { private MenuItem parent; private List children; ... others methods ... @OneToMany(cascade = {CascadeType.ALL} @IndexColumn(name = "menu_position", base=1) public List getChildren() { return children; } } with revision rc2 the join table's name was "menu_item_menu_item" and with the 3.1-release is "menu_item_children". I prefer the old behavior. -- Pablo Nussembaum Gavin King wrote: Well, let's see if anyone complains... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Emmanuel Bernard Sent: Tuesday, December 20, 2005 7:06 AM To: Hibernate development Subject: [Hibernate] ImprovedNamingStrategy When working on the new naming strategy, I've broken the use of ImprovedNamingStrategy. now leads to /edit_status_edit_pid/ instead of /edit_pid. /Should I fix that for the sake of backward compatibility, or is it OK?/ / --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] ImprovedNamingStrategy
I'm complaining :-P today I was trying to update from hibernate-3.1-rc2 y annotation-3.1-b6. I found 2 problems (I'm the ImprovedNamingStrategy): 1. The one your describing 2. Some JoinTables change the generated name. Example: @Entity @org.hibernate.annotations.Entity(mutable=false) @Table(name = "menu_item") public class MenuItem extends BusinessObject { private MenuItem parent; private List children; ... others methods ... @OneToMany(cascade = {CascadeType.ALL} @IndexColumn(name = "menu_position", base=1) public List getChildren() { return children; } } with revision rc2 the join table's name was "menu_item_menu_item" and with the 3.1-release is "menu_item_children". I prefer the old behavior. -- Pablo Nussembaum Gavin King wrote: Well, let's see if anyone complains... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Emmanuel Bernard Sent: Tuesday, December 20, 2005 7:06 AM To: Hibernate development Subject: [Hibernate] ImprovedNamingStrategy When working on the new naming strategy, I've broken the use of ImprovedNamingStrategy. now leads to /edit_status_edit_pid/ instead of /edit_pid. /Should I fix that for the sake of backward compatibility, or is it OK?/ / --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
RE: [Hibernate] ImprovedNamingStrategy
Title: RE: [Hibernate] ImprovedNamingStrategy No more switches! :-) -Original Message- From: Leonardo Quijano Vincenzi [mailto:[EMAIL PROTECTED]] Sent: Mon 12/19/2005 9:00 PM To: Gavin King; hibernate-devel@lists.sourceforge.net Subject: Re: [Hibernate] ImprovedNamingStrategy Can it be switched on/off? The old behavior is kinda flaky ;). -- Ing. Leonardo Quijano Vincenzi DTQ Software Gavin King wrote: > > I guess we better fix it then. > > Note that some other people previously complained that they did not > like the old behavior ;) >
Re: [Hibernate] ImprovedNamingStrategy
Can it be switched on/off? The old behavior is kinda flaky ;). -- Ing. Leonardo Quijano Vincenzi DTQ Software Gavin King wrote: I guess we better fix it then. Note that some other people previously complained that they did not like the old behavior ;) --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
RE: [Hibernate] ImprovedNamingStrategy
Title: RE: [Hibernate] ImprovedNamingStrategy I guess we better fix it then. Note that some other people previously complained that they did not like the old behavior ;) -Original Message- From: Emmanuel Bernard [mailto:[EMAIL PROTECTED]] Sent: Mon 12/19/2005 6:10 PM To: Gavin King Cc: Hibernate development Subject: Re: [Hibernate] ImprovedNamingStrategy I person did so far. Gavin King wrote: >Well, let's see if anyone complains... > >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]] On Behalf Of >Emmanuel Bernard >Sent: Tuesday, December 20, 2005 7:06 AM >To: Hibernate development >Subject: [Hibernate] ImprovedNamingStrategy > >When working on the new naming strategy, I've broken the use of >ImprovedNamingStrategy. >now > > leads to >/edit_status_edit_pid/ instead of /edit_pid. > >/Should I fix that for the sake of backward compatibility, or is it OK?/ >/ > > > >--- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log >files for problems? Stop! Download the new AJAX search engine that >makes searching your log files as easy as surfing the web. DOWNLOAD >SPLUNK! >http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >___ >hibernate-devel mailing list >hibernate-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > > >
Re: [Hibernate] ImprovedNamingStrategy
I person did so far. Gavin King wrote: Well, let's see if anyone complains... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Emmanuel Bernard Sent: Tuesday, December 20, 2005 7:06 AM To: Hibernate development Subject: [Hibernate] ImprovedNamingStrategy When working on the new naming strategy, I've broken the use of ImprovedNamingStrategy. now leads to /edit_status_edit_pid/ instead of /edit_pid. /Should I fix that for the sake of backward compatibility, or is it OK?/ / --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
RE: [Hibernate] ImprovedNamingStrategy
Well, let's see if anyone complains... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Emmanuel Bernard Sent: Tuesday, December 20, 2005 7:06 AM To: Hibernate development Subject: [Hibernate] ImprovedNamingStrategy When working on the new naming strategy, I've broken the use of ImprovedNamingStrategy. now leads to /edit_status_edit_pid/ instead of /edit_pid. /Should I fix that for the sake of backward compatibility, or is it OK?/ / --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel