• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Spring boot don't mapping exist table which in MS SQL

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi dear readers, I have Spring boot project where we use MS SQL JPA Java EE and Spring boot. We have tables which we need to use for example one of the tables is "Dept". When we run our project spring trying creat dept but our MS SQL DB exist this table but the name is Dept. The Spring trying creat table with the first letter with lowercase. But the table which I need mapping the first letter with a capital. And spring mustn't create the table because I have the table already in MS SQL
DB.PNG
[Thumbnail for DB.PNG]
Entity.PNG
[Thumbnail for Entity.PNG]
error.PNG
[Thumbnail for error.PNG]
 
Bartender
Posts: 2266
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you specify your data source pointing to your existing database in application.properties ?
Reference:
https://howtodoinjava.com/spring-boot2/datasource-configuration/
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic