Hibrn8 for the Rest II

So I found a very user friendly site Hibernate Made Easy which shows very simple examples of how to get the most out of Hibernate. Not having spent a bunch of time using ORM hibernate seems to make your service layer a lot less cluttered.

Some main points that need to be considered when creating your POJOs and getting hibernate to work properly with your classes:

  • Keep the names of your class properties simple! (private String customerId & get/setCustomerId)
  • Make sure you use the full package path for your objects (class=”domain.Customer”)
  • Your id needs to be the primary key of the table in your database.
  • Make sure your property types are equal to what you specify in the hibernate.cfg.xml file
  • Keep in mind that your describing your class not the fields in your database.

One time consuming search was to figure out how to return a single object from the database using variable injection..and Cameron gives examples here

I hope this helps someone who was searching like I was!

posted by Grant in Everyday and have No Comments

Hibernate For the Rest of Us

I was learning Hibernate ORM for java on Netbeans this weekend…there is a bunch of documentation but I find it easier to learn by example. I will lay it out for all this week! Stay tuned!

posted by Grant in Technology and have No Comments

Early Girl Eatery

Well worth the wait on a Saturday late morning! Fresh local ingredients combined with cooking from the heart equals the best breakfast I’ve ever had!
Fresh jam waits for your toast or whole made biscuits. The pancakes are a must have and the homefries are sooo good!
Asheville, NC

posted by Grant in Eats and have Comments Off

Jacks River Bar

A bit off of the beaten path, Jack’s River Bar is a nice peaceful getaway with a unique twist on your typical beach grill menu. The hot Cuban panini with BBQ pulled pork was packed with bold favor and the side of waffle fries completed the meal. Bring your appetite if you order a whole sandwich! The chips and guacamole were very tasty as well.
Naples, FL

posted by Grant in Eats and have Comments Off

Windows XP on Mac

I am using Parallels 4.0 to manage my windows xp on my iMac.
First you install the Parallels program…follow the steps that the install launcher prompts you to do.
Then you will get to the question which install you want to do.  I chose the Express Windows Installation.
Then you need to put the Windows XP cd in the drive.  After about a hour its done!
It really is that easy…(only on a Mac.)
Then download Visual Web Developer 2008 from http://www.microsoft.com/express/vwd/
Go through the install and then the program just works.  I you experience the URI issue when you create a new website, just change the path by browsing to where you want VWD to store your website files.
The problem comes from there not being a real path to your files.
Have fun…I hope you’re as excited as I am being able to develop .net on a mac.

posted by Grant in Tutorials and have No Comments

Quicklook

Apparently when you install a new hard drive and then restore all your mac goodies from Time Machine you will loose the nice previews of your files when you click on them in column view. Oh yea, you also loose the “Quick Look” preview as well. What should you do? Simple download and install the Mac OS X V10.6.2 Combo. Once its installed and you reset your computer its fixed! Hope this helps others out there.

posted by Grant in Technology and have No Comments