Topic
1 reply Latest Post - ‏2013-10-29T15:39:21Z by rsanchezh
sak
sak
1 Post
ACCEPTED ANSWER

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

‏2013-10-10T15:22:11Z |

Hello,

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
    rsanchezh
    34 Posts
    ACCEPTED ANSWER

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

    ‏2013-10-29T15:39:21Z  in response to sak

    Hello,

    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 http://www.ibm.com/software/rational/support/contact.html?rcss=rtlrad