Patches item #661750, was opened at 2003-01-04 04:56
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428710&aid=661750&group_id=40712

Category: None
Group: None
>Status: Closed
>Resolution: Rejected
Priority: 5
Submitted By: Benoit Menendez (bmenendez)
Assigned to: Nobody/Anonymous (nobody)
Summary: Table.uniqueColumnString

Initial Comment:
Would it be more appropriate to do:

public String uniqueColumnString(Iterator iterator) {
        int result = name.hashCode();
        while ( iterator.hasNext() ) result += iterator.next
().hashCode();
        return Integer.toHexString(result).toUpperCase();
}

instead of

public String uniqueColumnString(Iterator iterator) {
        int result = 0;
        while ( iterator.hasNext() ) result += iterator.next
().hashCode();
        return ( Integer.toHexString( name.hashCode() ) + 
Integer.toHexString(result) ).toUpperCase();
}

This would generate shorter names

----------------------------------------------------------------------

>Comment By: Gavin King (oneovthafew)
Date: 2003-01-05 11:58

Message:
Logged In: YES 
user_id=384580

I'd rather *not* change this now, since people are already
using the existing name generation. It destroys the whole
point of having consistent name generation if we keep
changing the algorithm underneath them ;)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428710&aid=661750&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

Reply via email to