Monday, March 6, 2017

What is the use of annotations in hibernates?

What is the use of annotations in hibernates?


Lets see the uses and benefits of Hibernate annotations:

In the Hibernate version 2.5 or below there was only one method of creating the Java class to database mapping information. And this was done through the xml files. Very easy for programmer as programmer can define mapping in the same POJO file and there are very less chances of error.

Programmer always loves the annotations way of programming due to simplicity.

So, it was not easy method. Developers needs to work on Java class and then on xml file for mapping.


After introduction of annotation in Java 5, Hibernate adopted annotation method for mapping. In this case developer provides mapping information in the Java class itself and its very easy method.

Check tutorial: Hibernate 4 Annotations Tutorial 

More tutorials of Hibernate:

  1. Complete Hibernate 3.0 and Hibernate 4 Tutorial
  2. What is Hibernate in Java?
  3. Hibernate Overview
  4. Hibernate Example Step by Step in Eclipse
  5. Hibernate 4 Tutorial
  6. Complete Hibernate 4.0 Tutorial


Benefits of using annotation:

  • Only one Java file to work
  • Easily define mapping in Java pojo file
  • Less changes of error
  • Very easy
  • Work fast


Check large collection Hibernate tutorials at roseindia.net.


Thanks



What’s the best way to learn Hibernate ORM?

What’s the best way to learn Hibernate ORM?

For learning Hibernate following are pre-requisite:


  • Core Java
  • Advanced Java
  • JDBC
  • MySQL or any other database
You should have prior experience in developing database driven applications. Good experience with JDBC programming on any commercial project.

Get started with the tutorial: Hibernate Example Step by Step in Eclipse.

Here is video instruction:


Following are best tutorials of Hibernate:


Hibernate:


Sunday, March 5, 2017

What can be learned along with Java?

What can be learned along with Java?

This is the question beginner will often ask after learn Core Java and Advanced Java.

First of let me tell you Java is software development and JVM. Software development kit (SDK) is used to compile the software and it comes with many API, Frameworks for building applications.

JVM is where your program runs. You can run your program in standalone mode, on application server on mobile devices.

To make enterprise application with Java you have to learn many APIs and frameworks.

First Learn:

After learning above topics you can learn following technologies and frameworks:

Technologies are unlimited and day by day new frameworks are coming in the market. Updates of existing frameworks are coming.

So, its necessary to keep yourself up-to-date by learning new technologies.

Thanks



Saturday, March 4, 2017

Which is good tutorials of Java IO package?

Which is good tutorials of Java IO package?

Are you looking for tutorials and example on Java IO package?  I will provide you the url for learning classes of Java IO packages with many example.


There are two types of examples with the Java package. One involves reading of file while other set of examples of writing to file.

Here is simple example of reading a file in Java:

File file = new File("myfile.txt");
FileReader fileReader = new FileReader(file);
BufferedReader bufferedReader = new BufferedReader(fileReader);
StringBuffer stringBuffer = new StringBuffer();
String line;
while ((line = bufferedReader.readLine()) != null) {
 stringBuffer.append(line);
 stringBuffer.append("\n");
}
fileReader.close();
System.out.println("Content:");
System.out.println(stringBuffer.toString());

This way you can read a file in Java.

Here are the list of good tutorials of Java IO Package:




All the above examples are very good with many example code and explanation of the code.

Here is one video of Java IO package:



Happy learning....

Thanks


What are the classes in Java IO package?

What are the classes in Java IO package?

In this post we are going to see the classes of Java IO Packages.

The meaning of IO is input/output, in this package we have classes for input and output operations in Java API.

Java is very flexible API and programming language, it provides APIs for large types of functionality. The Java IO package is one of the most useful APIs.

All the developers learning Java must learn the Java IO package.

In Java IO package there are two types of classes:


  • Input stream - classes of reading data
  • Output stream - these classes are used for writing
With the help of these classes  developer can perform read and write operations from their Java program.

You can check the Java Read file Line by Line tutorial which teaches how to read a big text file in Java efficiently.

Other example of reading file are:


  • How To Read File In Java with BufferedReader

  • Now let's come to the Java IO classes, Lets see some of the features of Java io packages:


    • Ready to use classes and interfaces for input and output operations
    • Classes for both binary and text operations are available
    • Buffered reader and writer classes are available to fast operations
    • All the types of file operations can be performed using Java IO packages
    • Stream input and output is also supported
    Check Classes and Interfaces of the I/O Streams classes for complete details and tutorials.

    Thanks



    Java Date programming

    Date programming in Java

    Manipulating date is the most common thing in programming. Java also provides many api and examples for handling Date in Java.

    Check date examples at:

    Simple Date example

    Comparing two Dates in Java

    Getting time in Milliseconds

    View tutorial at: Java Date.

    Thanks

    What is Domain Parking?

    What is Domain Parking?

    In this post we are going to discuss about the domain parking.

    Domain parking is the registration of domain without actual hosting or associating email with the domains.


    This actually done for reserving the domain for future use.

    For example you found a domain name relevant to your business then you can register it and use the domain in future.

    Most of the domain registrar provides free domain parking.

    View tutorial at: What is Domain Parking.

    Thanks