Hi folks!

I sense some chicken-egg proglem with FieldMapping and what field becomes a 
persistent column.

The point is that only fields which have a valid FieldMapping will become a 
persistent column.

Currently the main check - as far as I do understand so far - is in 
PersistenceMetaDataDefaults#getPersistenceStrategy.
Only fields which have some specific mapping annotations 
(PersistenceMetaDataDefaults#_strats) or implement Serializable get 
automatically picked up. Other classes get totally ignored. Even if I 
explicitly have a @Strategy annotation on them or if I register global 
FieldStrategies. 

I cannot extend the _strats to @Strategy.class as PersistenceMetaDataDefaults 
is defined in openjpa-persistence but Strategy is only defined later in 
openjpa-persistence-jdbc.

What we could possibly do is to extend _attrs with the @Column annotation class?

Any other ideas?

LieGrue,
strub

Reply via email to