0 Replies Latest reply on Jan 19, 2016 2:36 AM by ozpas software

    How can nvcarhar fields of a table in sqlserver database be converted correctly when generating entities from tables via eclipse jpa tools

    ozpas software Newbie

      I tried to generate entities from tables in eclipse via jpa tools. (the image is below)

       

      hata1.jpg

       

      while converting, jpa tools define object types for fields whose type are nvarchar.

       

      hata2.jpg

       

       

      you can see database definition below.

       

      hata3.jpg

      how can i fix the type of nvarchar fields , as you can see, they should be string.

       

      second problem is that by default, eclipse set primitive types for fields of a table when generating entitites from tables. How can i set object types for fields , for example i want to use Integer type instead of int type.

       

      thank you very much