openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <ppod...@apache.org>
Subject RE: bidirectional one-to-many relationship with join-table
Date Tue, 08 Jun 2010 15:25:27 GMT

> Does OpenJPA assume that DB collation is always case insensitive? 

Many properties of database can be configured using following syntax.  
  <property name="openjpa.jdbc.DBDictionary"
value="sqlserver(schemaCase=preserve)"/> 

Each known database has a corresponding mnemonics such as 'sqlserver' --
which is realized by ....openjpa.jdbc.SQLServerDictionary. The properties of
these class (such as schemaCase) can be further configured.

If you want to dig further, take a look at a class
PersistenceMappingDefaults or its superclasses. They control how database
schema elements (such as foreign key or a join table) are named. One can
selectively change/tune those policies by overriding selective methods of
these classes as a last resort

There had been many important changes in OpenJPA 2.0 in the way names to
database schema elements are assigned. I hope the ones who have expert
understanding of this new development will be able to help out further. 
 


-----
Pinaki 
-- 
View this message in context: http://openjpa.208410.n2.nabble.com/bidirectional-one-to-many-relationship-with-join-table-tp678479p5154163.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message