Let’s say i have array ofStrings= {"testUser1", "testUser2", ... , "testUser28"}, how do I store this in oracle database, am using varchar2 as dataType for userTableColumn.
My question:
- How do I store this array of string, for ex, in oracle Database using Hibernate (any example would be highly appreciated) ?
- What should be dataType of database column that will store this array of string, right now i have that as
varchar2, also if I define it asclobthen unless size is greater than4000 bytes, it would behave asvarchar2and size exceeds 4000 bytes, it would be converted toclob?
Your Oracle database end should look like this.
Can’t provide example for Hibernate though.