Tag: jpa
Posts of Tag: jpa
  1. 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
    JavaDatabaseMySqlPostgreSQLSpringSpring BootAnnotationjpa
  2. 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
    JavaDatabaseORMHibernatejpa
  3. 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
    JavaDatabaseh2Hibernatejpa
  4. 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
    JavaDatabaseORMh2Hibernatejpa
  5. 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
    JavaSwingjpaDesktopbeansbinding
  6. Alternative of JPA

    I want to use JPA for my persistence layer of my Java Desktop Application but I have the similar problem as describe at http://stackoverflow.com/questions/2562746/jpa-entity-design-problem/2563009#2563009 I di...Learn More
    Javajpa
  7. How should I reset a JPA-controlled database before every test?

    Is there a best-practice pattern for completely resetting a database to a freshly-paved schema with JPA before a unit test? I have been using a testing persistence unit with hbml2ddl.auto=create-or-drop and rec...Learn More
    JavatestingHibernatejpaintegration-testing
  8. 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
    NewsHibernatejpaJeeJava Enterprise
  9. Where can you download a chm version of the JPA 2 API Javadocs?

    I'm tired of navigating Oracle's joke of a website! Where do we go for JPA docs? ...Learn More
    Javajpajavadoc
  10. 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
    Javajpaejb
  11. JPQL exclude subclasses in a query

    If I have a class Apple that extends Fruit, how do I write a JPQL query to return all objects that are strictly Fruits and not Apples? ...Learn More
    jpajpql
  12. 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
    Javajpa