Posts Tagged ‘Hibernate’

I have been spending a lot of time trying to find out how a technical person can get business. Basically, once we technologists start talking technology, it puts most people to sleep. And trying to pitch business to sleeping people somehow doesn’t work :-) .

I have been busy organising Glasgow Business Network and Glasgow Technology Network. In addition, I am now working on many projects.

In my next article I am planning to talk about JSP, Spring and Hibernate. Why am I moving away from JBoss Seam? Well, I am going for quiet a few interviews at the moment and most companies are interested in JSP/JSF, Spring and Hibernate.

And best way to learn is by actually doing a small project. In addition to doing the project, I also intend to put all the steps, explanation and source code here on my blog.

Why? Just so that I can refer back to it myself later on :-) .

I have been getting a lot of requests from freshers to guide them about their career. So I have decided to dedicate an article for that.

Pre-Fresher

I would describe someone who is in the last stages of finishing their formal education as Pre-Fresher. At this stage of your life, you need to be aware of industry trends, job market and salaries. Websites such as Tiobe Index should give you an idea of what is in demand. However, remember that what is in demand today may not remain in demand by the time you finish your degree. So its still a bit of a gamble. But if you have a broad skill set and good design and analytical skills, you can’t go wrong.

Don’t close yourself off. You may not be master of all skills. But as long as you are good at a few and know about a few others, you should be fine.

Industry experience is vital and would set you apart when you finish your education from your collegues. So I would suggest that at this stage you go for it even if you don’t get paid.

Skills worth looking at are: Java/J2EE stack, C/C++, VB, PHP, MySQL, PostgreSQL, Oracle and Linux.

Fresher

At this stage, you have finished your formal education and are ready to take on the world. You have to remember that humility, honesty and hard-work are the important attributes at this stage.

You don’t know everything. So don’t pretend you do. Don’t put things on your CV that you cannot justify. And if you don’t have a job, nothing is stopping you from downloading the latest JDK or Hibernate or JBoss Seam distribution and having a play around with it.

It is possible that you may not have access to a computer or internet. Be resourceful. I used to hire computers on an hourly basis to practice C Language.

Take any job. And once your contracted hours are over, with your manager’s permission you can spend time in some self-teaching. I am sure your manager would be more than happy to let you do that.

By this time, you should have a good idea about what skills attract you. So you can start concentrating on sharpening those skills. For example, if it is Java based Web Applications that interest you, make sure you have a look at JSF, RichFaces, JBoss Seam, JPA, Hibernate and JBoss.

There were no free databases when I had started my career. But today you are spoilt for choice. I would recommend PostgreSQL. Again, for operating systems, go for something with wide acceptance such as Fedora Linux. Have a look at distrowatch.com for other popular linux distributions.

Again, as far as an IDE is concerned, you are spoilt for choice. I would recommend Eclipse as that has a great set of available plug-ins.

Other things that you need to be aware of are Apache WebServer and Subversion (SVN) version management software.

A skillset such as that is going to give you a good start in your professional life.

One thing my teacher Dr. Mrs. Shirwaikar said to us which I follow to this day is “Your books don’t teach you everything”. And no matter how much you know, remember, you don’t know everything.

Another thing worth remembering is you may do everything correctly. But the outcome may not be what you expected. That doesn’t mean there is something wrong with what you did. Its just life – taken from Star Trek.

Recently I had the opportunity to speak on Hibernate at the UK Java User Group – Scotland. The presentation was partly slides and partly a live demo.

In this live demo, I covered following examples:

  • Single table CRUD
  • Single table CRUD where the id was autogenerated
  • One-Many CRUD
  • Many-Many CRUD

I have since migrated the example to work on Eclipse Ganymede (3.4.1) instead of MyEclipse 7.1. I have also made some small changes to the code.

You can download the presentation and the example code as a single zip file from here -> hiberws.zip.

To run the examples, you will need a PostgreSQL database. The SQL script for that is available in the db folder.