Good evening
I am currently developing a Java application. Now I want to enable the user to save an indefinite number of associated attachments for a object.
These attachments can be of the following types: string, xml file, binary files.
I use an Oracle db as the database. A different data type is actually recommended for each type: String - VARCHAR XML file - CLOB Binary file - BLOB
What's the best way here? A general table, which among other things contain the 3 fields (varchar, clob, blob) and depending on the type are two fields then NULL or three separate tables?
Am looking forward to your answers