Details
-
Question
-
Status: Open
-
Major
-
Resolution: Unresolved
-
V2 2.0.11
-
None
-
None
Description
In MySQL the column that are boolean are modeled via bit(1) or byte(1).
When I am using Olingo/Jpa beside MySQL and generate the entities in the Eclipse, it will assign type byte to these columns. It means in the metadata we will have something like this:
<Property Name="Deleted" Type="Edm.Byte" Nullable="false"/>
How can I modify the EDM type like the following?
<Property Name="Deleted" Type="Edm.Boolean" Nullable="false"/>
What I want to do is to do this modification with a mapping file, something like what explained here. (By this tutorial we can only change the names and not the types!)
Please note that I make eclipselink-orm.xml also automatically. I don't want to modify this file but it seems the type can be changed there as it has a line like this:
<basic name="deleted" attribute-type="byte">
However I don't want to modify this file each time while I generate it via Eclipse. Is there anyway that I extend some attributes there and inherent the rests?