Bugs item #662501, was opened at 2003-01-04 23:35 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=662501&group_id=40712
Category: None Group: None Status: Open Resolution: None >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 ---------------------------------------------------------------------- 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel