Hibernate: Changing Boolean-Mapping to 's'/'n'?

hibernate, java

Solution

AFAIK, you would have to use your own Dialect class, extending the Dialect class you're currently using, and override the method `toBooleanValueString()`.

Problem

I'm currently trying to get Hibernate working with an Oracle 8 Legacy-Database. Everything's working fine so far but now I've hit a problem I have yet to overcome: Boolean Values in the database are not kept in the 'y'/'n' or 't'/'f' or 0/1 format but because the project is from the spanish-speaking area it is saved as 's'/'n' for si/no. However, this is obviously not supported by Hibernate. Any ideas? I would be thankful for every little pointer in the right direction. For example which class does the Boolean-Mapping, so I could maybe override it/create my own version of it? Thanks in advance.

Original source