Red Hat Training

A Red Hat training course is available for Red Hat JBoss Data Virtualization

9.16. Red Hat JBoss Data Grid and Complex Data Types

Note

When you use Teiid Designer to reverse-engineer the view into a pojo, a BigDecimal data type is defined in the view. Unfortunately for the Google Protobuf used for serialization, complex data types cannot be converted to either C or C++. It is therefore recommended that you use primitive data types only. (You will come across this situation if you are trying to materialize a view that contains a complex data type or if there is an existing JDG cache that contains a POJO that has complex data types.)
As the protobuffer does not support BigDecimal directly, you have three options:
  1. use all primitive data types
  2. implement a marshaller that will handle the conversion, which means the .proto file will also need to be created (see Red Hat JBoss Data Grid for the creation of files)
  3. create a view that will convert the BigdDecimal to a string, then materialize that view.