Hi,
I am writing a small report generating application. The format input format is essentially an enhanced mapping file with some extra parameters. I am parsing the XML file myself, creating the query and the generating the report based on configuration information in that file.
I am using query.setParameter() to set the values, but I would like to know whether Hibernate provide a method of the form:
Type getTypeForName ( String name )
which would convert from the hibernat type strings as usedin HBM files to the Type class need by the setParameter() method. I know I could do the mapping myself, but if I can get the API to do the work then I will.
Andre
|