Skip to main content

Posts

Showing posts with the label Hibernate

Composite Primary Keys in Spring Boot JPA

Composite Primary Keys in Spring Boot JPA In Spring Boot, the Java Persistence API (JPA) provides an interface for working with databases. The use of a primary key in a database is a common practice to uniquely identify a record. However, there are cases where a single primary key may not be sufficient, and a composite primary key may be required. In this blog, we will discuss how to use composite primary keys in Spring Boot JPA. Defining a Composite Primary Key To define a composite primary key, we need to create a class that represents the primary key. This class should contain fields that correspond to the primary key columns in the database table. The class should also implement the Serializable interface and define equals() and hashCode() methods. Here's an example: public class EmployeeId implements Serializable { private Long departmentId; private Long employeeId; // Constructors, getters and setters, equals(), and hashCode() methods } ...

Video Tutorials on spring and hibernate

I have been searching for a good video tutorials on spring and hibernate since last two months and I end up with this tutorial series : http://pluralsight.com/training/Courses#java http://pluralsight.com/training/Courses/TableOfContents/springmvc-intro http://pluralsight.com/training/Courses/TableOfContents/hibernate-introduction http://pluralsight.com/training/Courses/TableOfContents/spring-jpa-hibernate As a beginner these tutorial are very help full to me to get started with spring and hibernate . There are plenty of tutorials on php and asp out there . But Tutorials on spring and hibernate are very rare .These tutorials helps you to get started with spring and hibernate  but these are paid  tutorials . If you are not that much rich ; then you can download the stuff from some alternative sites but I am not encourage you to do so . Hope this will help you . Happy coding Basics-In-Java

Free Java Video tutorials -java EE JSP Servlet Maven Spring Hibernate

First of all “ HAPPY NEWYEAR TO ALLZ… ” . I have been thinking of how can I start this new year; with do something good to people ; and I end up with writing something in this blog which helps to java newbies . I am going to share some open source(free) resource helps you to get started with java web development . Java video tutorials 1.    http://javabrains.koushik.org/p/home.html 2.    http://www.youtube.com/user/patrickwashingtondc 3.    http://www.youtube.com/channel/UCJiNQzZSUO6kYlbb4WUvJQA 4.    http://java9s.com/ 5.    http://www.pvtuts.com/java/java-introduction 6.    http://www.javavids.com/ 7.    http://www.ittrainersonline.com/maven-online-training-videos/ 8.    http://www.youtube.com/user/javascreencasts/about Paid tutorials : 1.http://www.vtc.com/products/Advanced-Java-Programming-Java-SE7-Tutorials.htm 2. http://www.lynda.com/Java...