A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://issues.apache.org/jira/browse/OPENJPA-2558 below:

[OPENJPA-2558] Implement a way to select the db representation of Boolean values

Many Databases do not natively support the SQL-99 BOOLEAN datatype. Boolean and boolean fields in JPA entities will thus get represented as another type in the database. OpenJPA currently has a hardcoded mapping to int 1/0 in the base DBDictionary.

But many existing databases don't use NUMBER(1) as column type but e.g. CHAR(1) (because it uses less space in the index).
There are also all sorts of possible representations where one of those is usually consistently used throughout a customer application:

And I've also seen translated ones: "J"/"N" in german apps for "Ja"/ "Nein" (yes/no).

So it should be possible to even add your own custom BooleanRepresentation.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4