Tag: jpa
Posts of Tag: jpa
  1. Guide to JPA with Hibernate - Basic Mapping

    Guide to JPA with Hibernate - Basic Mapping Introduction The Java Persistence API (JPA) is the persistence standard of the Java ecosystem. It allows us to map our domain model directly to the database structure...Learn More
    JavaHibernateDatabaseORMh2jpaProgramming Languages
  2. Guide to JPA with Hibernate - Relationship Mapping

    Guide to JPA with Hibernate - Relationship Mapping Introduction In this article, we'll dive into Relationship Mapping with JPA and Hibernate in Java. The Java Persistence API (JPA) is the persistence standard o...Learn More
    JavaHibernateDatabasejpah2Programming Languages
  3. Guide to JPA with Hibernate - Inheritance Mapping

    Guide to JPA with Hibernate - Inheritance Mapping Introduction In this article, we'll dive into Inheritance Mapping with JPA and Hibernate in Java. The Java Persistence API (JPA) is the persistence standard of ...Learn More
    JavaHibernatejpaDatabaseORMProgramming Languages
  4. Spring Data JPA - Guide to the @Query Annotation

    Introduction If you have worked with Spring Data JPA for any length of time - you're probably acquainted with derived query methods: public interface MyRepository extends JpaRepository<client, long=""> { ...Learn More
    JavaSpring BootPostgreSQLSpringDatabaseMySqljpaAnnotationProgramming Languages
  5. JPA @OneToMany — I want a foreign key. I don’t want a Join table

    Suppose you have this two entities: PhoneList and Phone. PhoneList have a @OneToMany to Phone. (I need only a unidirectional relationship) Something like: @OneToMany(cascade=CascadeType.ALmappedBy=”phoneList...Learn More
    NewsHibernateJava EnterprisejpaJeeBlog
  6. Lazy Hibernate JPA using SOAP

    I have a bunch of annotated, interrelated POJOs that I want to create/modify/search over SOAP. I made a utility to eagerly load every detail of each POJO and create an XML string so I can send the entire POJO ...Learn More
    JavaHibernateSOAPjpaProgramming Languages
  7. How to map inner object using Hibernate/JPA without xml/annotation?

    We have an object, A, which contains another object, B. We have Hibernate calling a stored procedure to query the data and populate instances of A. We're using the @NamedNativeQuery annotation with teh result...Learn More
    Hibernatestored-proceduresjpa
  8. How to make a weak entity using EJB 3.0

    suppose I have an entity "Employee", and an entity "Address". An employee has an address associated to him/her. In a relational database sense, the Address table would be considered a weak entity, since an empl...Learn More
    JavajpaejbProgramming Languages
  9. How to Java Persistence Api with MS Access?

    I could not find any jdbc driver for ms access.So how can I connect MS Access with JPA ? ...Learn More
    JavajpaProgramming Languages
  10. Saving data when using JPA and BeansBinding

    I am currently experimenting with JPA in a desktop application, while using BeansBinding to make the GUI development easier. So far the results are quite good. As an example application I have a small DB with o...Learn More
    JavaSwingjpaDesktopbeansbindingProgramming Languages
  11. Entity members should they be primitive data types or java data types?

    Is there a difference in declaring the enabled variable as Boolean or boolean? Which is preferable from a memory footprint perspective. @Entity class User { @Column Boolean enabled; } ...Learn More
    jpa
  12. Invalidating JPA EntityManager session

    A project I am working on uses Spring 2.5 & JPA with Hibernate as a provider. My DAO classes extend JpaDaoSupport, so I get my JpaTemplate using the getJpaTemplate() method. The back-end database can get...Learn More
    HibernateSpringSessionjpainvalidate