I have an XML File where I have a list of about 1500 'things' (let's say fruit: apple, banana, ...) Via an XML Parser I parse this list into java.
Now I also have a database that uses all this fruit and groups it. Eg one groups all the fruit and makes milkshake of it, so I need to store the different kinds of fruit in the milkshake.
Of course I only want to save some kind of reference to the XML file fruit and not save the complete XML file again in my database. Can I do this in Hibernate/Java and how?
|