Skip to main content
1 of 5
James
  • 3.2k
  • 21
  • 82
  • 131

Entity Class name is transformed into SQL table name with underscores

I have the following entity defined:

@Entity @Table(name = "EmailTemplate") public class EmailTemplate { 

Despite the table annotation, I receive java.sql.SQLException: Invalid object name 'email_template'. How can I prevent an entity class such as EmailTemplate being transformed into email_template table name?

James
  • 3.2k
  • 21
  • 82
  • 131