Bugs item #662501, was opened at 2003-01-05 18:35 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=662501&group_id=40712
Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 7 Submitted By: Mark Woon (unkyaku) Assigned to: Nobody/Anonymous (nobody) Summary: Length af aliases too long Initial Comment: Does Hibernate doesn't do any checking on the length of the aliases it generates when it creates it's SQL statements, which causes problems. I've went ahead and created a patch against Hibernate1 that resolves this problem. I've moved all the code for figuring out the proper length of the alias to StringHelper.suffix(). This eliminated OuterJoinLoader.aliasColumn(), OuterJoinLoader.aliasCore(), and AbstractEntityPersister.aliasColumn(), which you'd marked as needing to be refactored anyway. The patch also cleans up some unused variables in the affected classes, and adds a bit more information to an exception thrown in ReflectHelper. We might also want to do the same thing for table names, which is handled as a special case in OuterJoinLoader.alias(), where the length is reduced to 5. In either case, I didn't bother to make the max length of column names configurable dependent on Dialect. I just cut it to 20 if it was greater than 20. Anyone know if there are db's out there whose max length for column names is less than 20? -Mark ---------------------------------------------------------------------- >Comment By: Gavin King (oneovthafew) Date: 2003-01-09 21:56 Message: Logged In: YES user_id=384580 I've integrated this; THanks! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=662501&group_id=40712 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel