How to make entity mapping from the JPA database recognize the data type of the Database with

0

I am using Netbeans 8.2 project web classes Entity from a Database, mapping with JPA a database SQL server2012 from Microsoft. in the beginning I map with data types like Date, Image ... and others. Luxury, like this:  But after doing some modifications (a pair of fields in tables) it does not map the same now, it puts them as String, like this:  and I fry because there are many tables, which have dates to audit when it is modified and I think, anyway.

Please wait for someone to help me and tell me how it is done so that the mapping of the JPA allows me to recognize the data types of the database, and how I generate it at the beginning and because it generates now as a String. It has made it difficult for me to use one because it only allows me to pass the dates or with the modified format, only as a string.

    
asked by gorkyvtn 02.10.2018 в 23:06
source

0 answers