This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
No announcement yet.
how to let hhb2dll generate table field with type timestamp?Page Title Module
when using the option --persistenceType JPA_TIMESTAMP
could't format the date?
"field date --fieldName testDate --persistenceType JPA_TIMESTAMP --class ~.domain.Person --type java.util.Date --notNull --dateFormat MEDIUM --timeFormat MEDIUM
roo still generating field datatype
@DateTimeFormat(style = "MM")
private Date testDate;
If the part you've labeled as "db schema:" is what's being output, then I assume the field is called test_date in your DB. The field testDate won't map to that by default since the naming does not match. You would need to add the annotation @Column(name = 'test_date') to the field as well. Or specify --column test_date in your command when creating the field.