• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can not find the expected secondary table  RSS feed

 
jim li
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i got a
"Cannot find the expected secondary table: no User available for com.blinco.x3rdwave.account.User"

error, and trying to fix it for hours

please help me
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we see the code for the User class, or a mapping file if you're not using JPA annotations?

Do you use the @Secondary annotation anywhere?

-Cameron McKenzie
 
jim li
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tx , i already fixed the problem
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What was the solution?

-Cameron McKenzie
 
jim li
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i rewrited the whole entity class, and give it a different name.
 
Mahdi esmaeili
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think you use @Column(table = "User") instead of @Column(name = "User") in table com.blinco.x3rdwave.account.User
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!