Skip to main content
edited tags
Link
Jens Schauder
  • 82.6k
  • 35
  • 199
  • 379
added 2 characters in body
Source Link
Sridhar Sarnobat
  • 25.7k
  • 15
  • 101
  • 116

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'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?

Edit:

I'm using Spring Boot: start JPA. From my build.gradle file,

compile("org.springframework.boot:spring-boot-starter-data-jpa") 

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?

Edit:

I'm using Spring Boot: start JPA. From my build.gradle file,

compile("org.springframework.boot:spring-boot-starter-data-jpa") 

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?

Edit:

I'm using Spring Boot: start JPA. From my build.gradle file,

compile("org.springframework.boot:spring-boot-starter-data-jpa") 
Added spring-jpa tag
Link
James
  • 3.2k
  • 21
  • 82
  • 131
Add Library / Framework context
Source Link
James
  • 3.2k
  • 21
  • 82
  • 131
Loading
Source Link
James
  • 3.2k
  • 21
  • 82
  • 131
Loading