Showing posts with label Hibernate. Show all posts
Showing posts with label Hibernate. Show all posts
Tuesday, May 29, 2018
Saturday, February 24, 2018
by Admin
Top 5 Courses for Java / Spring developers
Online Courses are now the new trend of learning things first and udemy is one of the site which takes the lead of the online courses . In this article we will see what all courses everyone who want to learn Java programming should enrolled.
If you are experienced Java Developer and want to learn the in depth understanding
my recommendation is
Before we move further , You can also see one of the best spring course available on Udemy.
Let see the courses and there Scope what you will learn from these courses.
1.
By Dheeru Mundluru
What you will learn from this course:
- This is for complete beginner of java programming ( even experienced can also see)
- He has explained everything in a very proper way so that you can even relate it with real examples.
- Cover all the important topics even the most common interview questions asked
- All the source codes are also available in the course.
- course is very cheap , Check now
2.
my recommendation is
Complete Java Masterclass
By Tim Buchalka
What you will learn from here
- This will cover all the important topics along with java 8 and java 9 topics
- Will provide the indepth understanding of lambda expression and date API changes .
- Will provide full support of all the doubts you have while taking course.
- will provide the certificate after successful completion of the course
One Important thing is if you have no experience , you can even then this course as well .
3. Spring and Hibernate Leaning
If you are looking for learning spring and hibernate you can take the below course and it is one of the best course to learn from scratch .
Spring & Hibernate for Beginners
By Chad Darby
Features of this course-
- If you not at all familier with spring and hibernate , you should take this course.(only for begineers)
- this will cover the spring from xml to annotation implementation along with hibernate from hibernate xml to hibernate annotations.
- it will also provide the support of your doubts by chad darby itself
- the speed of the course is little fast but you can cover up with that.
- After successfully complete the course you will get the certificate of completion by udemy itself.
Note: If you are already aware of the spring and hibernate then you should take this course
4. Course for Android Developers
If you guys are looking for some good online course where you can learn android from scratch , below is the course you should avail.
The Complete Android N Developer Course
By Rob Percival
Features of this course
- you will get some free stuff like 50$ of AWS Credits , Free 1 year of hosting and much more
- It will teach you and will create complete new apps which will host on AWS and will show you all the features you can use.
- It is one of the best course for beginner of android developers.
- successfully completing will also provide you the certificates.
5. Want to be a Kotlin Android Devloper
The Complete Android Kotlin Developer Course
By Hussein Al Rubaye
Features of this courses.
- You will be learning basics of kotlin language.
- You will develop an app from scratch and upload it in google play store.
- you will get the certificate of completion .
I hope all the courses will help you in becoming a good programmer , if you like the article please share it with your friends and collegues
Saturday, November 11, 2017
by Admin
Spring JDBC - Connect Spring application to database using JNDI (Mysql)
JNDI now a day is very popular as it provide the underline database connectivity directly to the application which providing any driver and connection string and all , everything has to be defined at application server level only the JNDI name is what matters to the spring application , it basically connect with database only by using the JNDI Name .
So how to connect with database using jndi
In this program we are trying to connect our spring application with Mysql database using Mysql JNDI which we are defining in tomcat server of the application.
Below is the tag we need to add in the tomcat context.xml.
<Resource name="jdbc/springlearning" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="root" password="root" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/springlearning?useSSL=false"/>
below is the program
The structure of the project will be like below
Hope this will help you in understanding the program
Thanks for the reading
Noeik
So how to connect with database using jndi
In this program we are trying to connect our spring application with Mysql database using Mysql JNDI which we are defining in tomcat server of the application.
Below is the tag we need to add in the tomcat context.xml.
<Resource name="jdbc/springlearning" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="root" password="root" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/springlearning?useSSL=false"/>
below is the program
The structure of the project will be like below
Hope this will help you in understanding the program
Thanks for the reading
Noeik
Monday, July 3, 2017
by Admin
Hibernate Mapping - OneToOne Relationship
Hello friend , Knowing one to one relation is very easy to understand for the interview aspirant , but to implement the knowledge into programming is the key which makes one a good programmer.
Today we will learn more about hibernate mapping -One to one
Breif- There are FOUR relationship mapping between object (tables)
SQL Scripts
CREATE TABLE `finances_user` (
`USER_ID` bigint(20) NOT NULL AUTO_INCREMENT,
`FIRST_NAME` varchar(45) NOT NULL,
`LAST_NAME` varchar(45) NOT NULL,
`BIRTH_DATE` date NOT NULL,
`EMAIL_ADDRESS` varchar(100) NOT NULL,
`LAST_UPDATED_BY` varchar(45) NOT NULL,
`LAST_UPDATED_DATE` datetime NOT NULL,
`CREATED_BY` varchar(45) NOT NULL,
`CREATED_DATE` datetime NOT NULL,
`USER_ADDRESS_LINE_1` varchar(100) DEFAULT NULL,
`USER_ADDRESS_LINE_2` varchar(100) DEFAULT NULL,
`CITY` varchar(100) DEFAULT NULL,
`STATE` varchar(2) DEFAULT NULL,
`ZIP_CODE` varchar(5) DEFAULT NULL,
PRIMARY KEY (`USER_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
Today we will learn more about hibernate mapping -One to one
Breif- There are FOUR relationship mapping between object (tables)
- ONE TO ONE
- Unidirectional
- bidirectional
- ONE TO MANY
- Unidirectional
- bidirectional
- MANY TO ONE
- Unidirectional
- bidirectional
- MANY TO MANY
- Unidirectional
- bidirectional
One to One mapping- In One to One mapping one object (row of a table ) is associated only with one another object(row of a table)
Ex - A user have only one System Credential.
When we say Uni directional - it means we dont have target to source mapping , we only have source to target mapping.
But in bidirectional we will have source to target to and fro mapping.
In Today's post we will see the ONE TO ONE UNIDIRECTION PROGRAM-
The Project Structure should be like below
SQL Scripts
CREATE TABLE `finances_user` (
`USER_ID` bigint(20) NOT NULL AUTO_INCREMENT,
`FIRST_NAME` varchar(45) NOT NULL,
`LAST_NAME` varchar(45) NOT NULL,
`BIRTH_DATE` date NOT NULL,
`EMAIL_ADDRESS` varchar(100) NOT NULL,
`LAST_UPDATED_BY` varchar(45) NOT NULL,
`LAST_UPDATED_DATE` datetime NOT NULL,
`CREATED_BY` varchar(45) NOT NULL,
`CREATED_DATE` datetime NOT NULL,
`USER_ADDRESS_LINE_1` varchar(100) DEFAULT NULL,
`USER_ADDRESS_LINE_2` varchar(100) DEFAULT NULL,
`CITY` varchar(100) DEFAULT NULL,
`STATE` varchar(2) DEFAULT NULL,
`ZIP_CODE` varchar(5) DEFAULT NULL,
PRIMARY KEY (`USER_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
CREATE TABLE `credential` (
`CREDENTIAL_ID` bigint(20) NOT NULL AUTO_INCREMENT,
`USER_ID` bigint(20) NOT NULL,
`USERNAME` varchar(50) NOT NULL,
`PASSWORD` varchar(100) NOT NULL,
PRIMARY KEY (`CREDENTIAL_ID`),
UNIQUE KEY `USER_ID_UNIQUE` (`USER_ID`),
CONSTRAINT `FINANCES_USER_FK` FOREIGN KEY (`USER_ID`) REFERENCES `finances_user` (`USER_ID`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
DOWNLOAD - SOURCE CODE (if deleted let us know)
Let us know if you dont understand anything in this post .
Thanks for reading
-Noeik
Subscribe to:
Posts (Atom)



