Aly González - 2010-03-21

IN HibernatConfigure.JAVA CHANGE THIS

Pattern pattern = Pattern.compile((String)matchIterator.next());

FOR THIS:

String stringPattern ;
Object item = matchIterator.next();
try {
stringPattern = (String)item; // Spring 1.2
}
catch(Exception e){
TypedStringValue typedStringValue  = (TypedStringValue)item; //  Spring 1.2+
stringPattern = typedStringValue.getValue();
}
Pattern pattern = Pattern.compile(stringPattern);