If the value of this fixedString property is "true", JDBC will use FIXED CHAR semantic when setObject is called with a String argument. By default JDBC uses VARCHAR semantics. The difference is in blank padding. With the default there is no blank padding so, for example, 'a' does not equal 'a ' in a CHAR(4). If true these two will be equal.
StackOverflow: How to use Oracle jdbc driver fixedString property?
- Add Maven Dependencies
<dependency>
<groupId>org.shenjia</groupId>
<artifactId>oracle-char-query</artifactId>
<version>1.0.0</version>
<dependency>
- Set JDBC properties
driverClassName=org.shenjia.ocq.OcqOracleDriver