I have an existing database of a film rental system. Each film has a has a rating attribute. In SQL they used a constraint to limit the allowed values of this attribute.
Sounds like you need to add support for a custom type:
Extending OracleAS TopLink to Support Custom Type Conversions