Hi all,
I am new to hibernate and already love it! Thanks to all the great work put into it. There's one thing I'd like to do that I cannot figure out the elegant way to do (and thus I think I haven't figure out the right way to do): I have a DB representing vectors (double[] in Java) for math research. I can use a <primitive-array> tag and map correctly (see below), but that wastes tremendous amount of space (key and index...). The solution I imagine to store only the value in a column-based model for my vector: each row is a vector and columns are its values.
Ultimately I'd like to have a table with n (from 100 to 1500) columns. How would I go on to specify such a table in hbm?
Thank you very much for your help,
_Stephane
Hibernate version: 3.2
Mapping documents:
Code:
<primitive-array name="vector" table="normalized_vector">
<key column="vector_id" />
<index column="elem_index" type="int" />
<element column="elem_value" type="double" />
</primitive-array>
Name and version of the database you are using: MySQL