Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

jpa

What is the difference between Unidirectional and Bidirectional JPA and Hibernate associations?

by IT Nursery

What is the difference between Unidirectional and Bidirectional associations? Since the table generated in the db are all the same,so the only difference … Read more

Tags associations, hibernate, java, jpa, orm

Hibernate vs JPA vs JDO – pros and cons of each? [closed]

by IT Nursery

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so … Read more

Tags hibernate, java, jdo, jpa, orm

How to test Spring Data repositories?

by IT Nursery

I want a repository (say, UserRepository) created with the help of Spring Data. I am new to spring-data (but not to spring) and … Read more

Tags jpa, spring-data, spring-data-jpa, unit-testing

Please explain about insertable=false and updatable=false in reference to the JPA @Column annotation

by IT Nursery

If a field is annotated insertable=false, updatable=false, doesn’t it mean that you cannot insert value nor change the existing value? Why would you … Read more

Tags eclipselink, jakarta-ee, java, jpa

JPA OneToMany not deleting child

by IT Nursery

I have a problem with a simple @OneToMany mapping between a parent and a child entity. All works well, only that child records … Read more

Tags java, jpa, jpa-1.0

When use getOne and findOne methods Spring Data JPA

by IT Nursery

I have an use case where it calls the following: @Override @Transactional(propagation=Propagation.REQUIRES_NEW) public UserControl getUserControlById(Integer id){ return this.userControlRepository.getOne(id); } Observe the @Transactional has … Read more

Tags jpa, spring-data, spring-data-jpa

How to convert a Hibernate proxy to a real entity object

by IT Nursery

During a Hibernate Session, I am loading some objects and some of them are loaded as proxies due to lazy loading. It’s all … Read more

Tags hibernate, java, jpa, lazy-loading, proxy

When and why JPA entities should implement the Serializable interface?

by IT Nursery

The question is in the title. Below I just described some of my thoughts and findings. When I had a very simple domain … Read more

Tags hibernate, java, jpa, orm, serialization

Spring boot – Not a managed type

by IT Nursery

I use Spring boot+JPA and having a problem while starting the service. Caused by: java.lang.IllegalArgumentException: Not an managed type: class com.nervytech.dialer.domain.PhoneSettings at org.hibernate.jpa.internal.metamodel.MetamodelImpl.managedType(MetamodelImpl.java:219) … Read more

Tags jpa, spring, spring-boot, spring-data, spring-mvc

How to persist a property of type List in JPA?

by IT Nursery

What is the smartest way to get an entity with a field of type List persisted? Command.java package persistlistofstring; import java.io.Serializable; import java.util.ArrayList; … Read more

Tags java, jpa, orm
Older posts
Page1 Page2 … Page5 Next →

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery
x
x