1

I am using Java7 persistence with Spring Data JPA template to generate my DAL classes using Telosys generator. While my database has default values set for all the columns, my template fails to generate the same in my @column annotation. Kindly suggest if this can be fixed in the template or any other template you suggest.

Sandiip Patil
  • 456
  • 1
  • 4
  • 21

1 Answers1

0

In Telosys 3.x "columnDefinition = xxx DEFAULT xx" is not handled by "$jpa" object.

It is supported in Telosys 4.0.

So you have 2 options :

  • you can switch to Telosys 4
  • you can managed the column definition yourself in the template (for example with a Velocity macro or with your own specific Java class)
lgu
  • 2,342
  • 21
  • 29