All Questions
Tagged with data-persistence jpa
7 questions
-1
votes
1
answer
72
views
Data not save in the database table
I created sample java project and try to save data with JPA. able to connect with the database as well as able to create the related database table(named laptop) as well as. But when i try to save ...
0
votes
0
answers
22
views
does querying a list of entities from database loads the entities into managed context in jpa?
for example:
1.I have 100 entities in a database
2.when i select all those 100 entities via select query,will those entities be loaded to managed context?
3.If yes , what happens if we dont change any ...
1
vote
3
answers
3k
views
Spring Boot JPA how to handle child table updates
I've come from a background in my previous role of doing all data persistence with all custom SQL and JDBC. Just started a new job for a small business where I'm the only developer and have decided to ...
1
vote
1
answer
2k
views
Why can't I connect to database with JPA?
UserEntity:
package model.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax....
0
votes
1
answer
4k
views
JPA retrieve objects from database
I'm triying to solve a Java programming exercise for the universisty, but I don't know how to solve the next problem. I have the next persistence.xml file:
<?xml version="1.0" encoding="UTF-8"?&...
10
votes
2
answers
15k
views
Can an entity class work without having a definition for all columns of the table
I implemented database querying for a table using jpa. I have added a new column in database for the table and completed my coding.
If after some time the deployment got reverted, consider I added a ...
0
votes
1
answer
3k
views
Hibernate: need update parent entity without pulling all its child-cascade
I faced the problem when I need to partially udate data in BD.
What I have:
I have three linked entities:
Profile --(1-m)--> Person --(1-1)--> Address
Where Person -> Address is lazy relationship. ...