What I ended up doing is creating my own oracle dictionary: public class OracleDictionaryWithInitTrans extends OracleDictionary {
@Override public String[] getCreateTableSQL(Table table) { String[] tableSql = super.getCreateTableSQL(table); tableSql[0] = tableSql[0] + " INITRANS 255 "; return tableSql; } } Then in my configuration: String databaseType = new org.apache.ddlutils.PlatformUtils().determineDatabaseType(dataSource); if (databaseType != null && databaseType.toLowerCase().contains("oracle")) { jpaConf.put("openjpa.jdbc.DBDictionary", OracleDictionaryWithInitTrans.class.getName()); } -- View this message in context: http://openjpa.208410.n2.nabble.com/how-to-set-custom-tablespace-tp1672542p7580978.html Sent from the OpenJPA Users mailing list archive at Nabble.com.