64 Replies
ā
This post has been reserved for your question.
Hey @Manish Kumar! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose 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.
well the file needs to be called
hibernate.cfg.xml
and it needs to be in your resources directory (typically src/main/resources
)i haven't resources folder,
there is
src/main/java
i tried this alsoyou can create one
is it mandetory?
what?
resources pkg
I think so
should i make it root dir?
well technically you can also change the pom.xml in weird ways
just create a
src/main/resources
directory
and reload the Maven project in IJokk
and make sure you have your hibernate.cfg.xml in there
btw i need a guide
do u have 2-3 mints?
src/main/java -> Java files
src/main/resources -> other things that are part of the application
maybe
if you have questions, just ask
have you learnt Spring boot?
I do know Spring Boot
only know?
means you haven't made any project etc!
?
I have a project with it
In fact, with a friend, I have written 128 pages for a final school project which was a spring project
I need guide
I am currently Learning hibernate
i have learnt Jdbc , Spring core , Spring Jdbc , 50% of servlet Jsp ( j2ee )
should i learn J2EE fully?
should i learn hibernate/ Spring mvc etc. before Spring boot?
Use Spring with Spring Boot
and you can learn most of Hibernate with Spring JPA
like i am not feeling well , it's boring without any projects š,
Also J2EE is a name that isn't in use any more. It's Jakarta EE now
can u tell me which things i learn directly,
What do you want to learn?
spring boot
then learn Spring stuff
all spring modules?
well you probably don't need every module
Jakarta is required for that? also html CSS š
Spring uses Jakarta EE and Hibernate internally
that's i am asking which things i learn before Spring boot
but it abstracts over it a lot
i have knowledge about it
And you don't need HTML/CSS/JS for Spring directly but if you make a web application with Spring, you'll probably need it
ohk
...
Do you know Maven or Gradle?
last question
i have Knowledge, it's manage our dependencies
like we don't need to add jar file manually
You should be able to use it
..
you haven't give ans for that
i will back within 20-30mints bye
Give me a good short raodmap pls
cause I don't know exactly
I don't have one but ig if you want to know Spring/Spring Boot, do that
error is fix @dan1st | Daniel
but new error occurs, i.e. MySQL
let me show u


well the user you set in your hibernate.cfg.xml cannot access the schema
actually, it looks like it wasn't able to use the things in that file
oh
you used
hibernate.connect
not hibernate.connection
ohk
1s
now it's saying ` unable to determi Dialect without jdbc metadata
Did you change all
bibernate.connect
s to hibernate.connection
?solvedd
Also, please use codeblocks instead of images if possible
(for text/code)
i was using connect in Dialect, hdm2ddl.autk
ok sir
next tym
ty for your help
@dan1st | Daniel new error š„²
ok it seems like
com.myhibernate.Student
is missing a no-args constructor
looks like your connection URL might be wrong in some wayi fixed this Error constructor err
why what happened?
Does the
myhiber
database exist?yes
i have create in my terminal
and this is still in my front š
What Hibernate version are you using?
latest
644*
Is there more shown in the console?
Can you show your hibernate.cfg.xml again?
Do you have a persistence.xml?
no
sure
mysql version 8.0.36
Is it
connect
or connection
?connect
I thought you changed everything to
connection
?
I think it should be hibernate.connection
no i had connection first
so i changed
Which error are you getting when using
hibernate.connection
everywhere?should i use connection?
let me again check
wtf
it's Working
šš
š¤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.