Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1461

How can I modify Edm types in olingo by mapping in Olingo

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Question
    • Status: Open
    • Major
    • Resolution: Unresolved
    • V2 2.0.11
    • None
    • odata2-jpa
    • 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?

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            mjz Mahdi Ansari

            Dates

              Created:
              Updated:

              Slack

                Issue deployment