openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Heather Sterling <>
Subject FieldMetaData questions
Date Tue, 10 Mar 2009 15:09:32 GMT


I was wondering how to retrieve the possible enum values from a
FieldMetaData structure.

I also wanted to know if there's a way to get other information, such as
the length of a field. (specified with @Column annotation).  I assume there
is, but I could not find it.

Lastly, is there a way to extend the metadata, such that I could tag a
field with a custom-defined property-value pair and retrieve it?  I saw
that there are some extension APIs on FieldMetaData, but I'm not sure what
the purpose of those are.  For example, in our current legacy code, we have
the idea of a "hidden" property.  I would like to be able to retrieve this
when looping through the fields in order to correctly transform the data to
our existing legacy structures.


Heather Sterling
Systems Management Development
Phone:  919-254-7163 T/L: 444-7163
Cell: 919-423-3143
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message