Tips and Pitfuls for overriding equals method in Java

If you’re a java developer, you already know Class java.lang.Object defines an equals method, which subclasses may override. Here are some tips and pitfuls in implementing equals in this quick blog entry.  But before we diverge into some pointers, let’s review the rules to override the equals method Java. As per following rule equals method in Java should be: 1) Reflexive : ObjectContinue reading “Tips and Pitfuls for overriding equals method in Java”

Hibernate One-To-Many Mapping Tutorial

In this example you will learn how to map one-to-many relationship using Hibernate. Consider the following relationship between Student and Phone entity. According to the relationship a student can have any number of phone numbers. The relational model is shown below. To create this relationship you need to have a STUDENT, PHONE and STUDENT_PHONE table.  ToContinue reading “Hibernate One-To-Many Mapping Tutorial”

Setup Virtual Hosts Using WAMP

In order to run PHP on your local Windows computer, you need to install a server stack – either WAMP or XAMPP. Either will do, but for the purposes of this tutorial we’re going to stick with WAMP. Mac users: Most of what you need to run basic server-side scripts is already installed on your Mac.Continue reading “Setup Virtual Hosts Using WAMP”

How to get SpeakOut 7-Eleven Unlimited Mobile Browsing working on Unlocked Android Phones.

SpeakOut 7-Eleven is probably one of the best value phone plan in Canadas for those who require a very light data plan (i.e. (UMB) Unlimited Mobile Browsing!). For $10/month you can’t go wrong for Unlimited. There are a few caveats , mainly since Speakout uses a proxy to access their free mobile browisng feature, itContinue reading “How to get SpeakOut 7-Eleven Unlimited Mobile Browsing working on Unlocked Android Phones.”