Hibernate is Not Creating Tables

I am trying to create Table Via Hibernate But its not creating anything here is my class https://sourceb.in/TZTKrP7UL4
10 Replies
JavaBot
JavaBot6mo ago
This post has been reserved for your question.
Hey @Danix! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Danix
DanixOP6mo ago
@dan1st | Daniel can u check it once ?
dan1st
dan1st6mo ago
What's the package of your main class? What's the package of your entity class? What's shown in the console?
Danix
DanixOP6mo ago
this is my console
dan1st
dan1st6mo ago
.
Finished Spring Data repository scanning in 6 ms. Found 0 JPA repository interfaces.
That line is interesting here - Spring doesn't know about your entity Can you show your main class?
Danix
DanixOP6mo ago
package com.ShelfSpace.ShelfSpace;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@SpringBootApplication
@EntityScan("com.ShelfSpace.ShelfSpace.model")
@EnableJpaRepositories("com.ShelfSpace.ShelfSpace.repository")
public class ShelfSpaceApplication {

public static void main(String[] args) {
SpringApplication.run(ShelfSpaceApplication.class, args);
}

}
package com.ShelfSpace.ShelfSpace;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@SpringBootApplication
@EntityScan("com.ShelfSpace.ShelfSpace.model")
@EnableJpaRepositories("com.ShelfSpace.ShelfSpace.repository")
public class ShelfSpaceApplication {

public static void main(String[] args) {
SpringApplication.run(ShelfSpaceApplication.class, args);
}

}
i think i found the mistake i am scanning the wring entity
dan1st
dan1st6mo ago
And the entity class? Where is that? Which is why I'm asking these questions
Danix
DanixOP6mo ago
yehh thanks
JavaBot
JavaBot6mo ago
If you are finished with your post, please close it. If you are not, please ignore this message. Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
JavaBot
JavaBot6mo ago
Post Closed
This post has been closed by <@1115219012759072928>.
Want results from more Discord servers?
Add your server