• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

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: 2008
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/
 
Honk if you love justice! And honk twice for tiny ads!
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic