• 1 reply
  • Latest Post - ‏2013-10-29T15:39:21Z by rsanchezh
1 Post

Pinned topic JPA - Entities from Tables - Date type gen error

‏2013-10-10T15:22:11Z | date entity jpa server sql


I am using RAD 8.0.4 JPA Generate Entities from Tables. DB is SQL Server 2012 Express

For database "date" fields, the generated entities show String 1 (see RECON_DATE)

Database "datetime" fields are generated correctly (see CREATED_TIME)

@Column(name="RECON_DATE", length=1)
private String reconDate;
@Column(name="CREATED_TIME", nullable=false)
private Timestamp createdTime;

What am I doing wrong?

  • rsanchezh
    47 Posts

    Re: JPA - Entities from Tables - Date type gen error



    In the wizard to generate entities from Tables, there is a page called Customize Individual Entities. In this page, you can change the mapping type for each column.

    If customizing each column is not a good option for you, I'd suggest contacting RAD support