Archive

Archive for December, 2009

Fixing Generating Hibernate mappings files and POJOs from database

December 22, 2009 2 comments

Using Netbeans try to add hibernate mapping files and pojos from postgres database:-

Result:

  • No mapping files and pojos generated.
  • IDE log shows warning messages like below
WARNING [org.hibernate.cfg.reveng.JDBCReader]: The JDBC driver didn't report any primary key columns in AccountLine. Asking rev.eng. strategy
WARNING [org.hibernate.cfg.reveng.JDBCReader]: Rev.eng. strategy did not report any primary key columns for Address
WARNING [org.hibernate.cfg.reveng.JDBCReader]: The JDBC driver didn't report any primary key columns in Country. Asking rev.eng. strategy
WARNING [org.hibernate.cfg.reveng.JDBCReader]: Rev.eng. strategy did not report any primary key columns for Country
WARNING [org.hibernate.cfg.reveng.JDBCReader]: The JDBC driver didn't report any primary key columns in User. Asking rev.eng. strategy
WARNING [org.hibernate.cfg.reveng.JDBCReader]: Rev.eng. strategy did not report any primary key columns for User
WARNING [org.hibernate.cfg.reveng.JDBCReader]: The JDBC driver didn't report any primary key columns in UserAccount. Asking rev.eng. strategy
WARNING [org.hibernate.cfg.reveng.JDBCReader]: Rev.eng. strategy did not report any primary key columns for UserAccount
WARNING [org.hibernate.cfg.reveng.JDBCReader]: The JDBC driver didn't report any primary key columns in UserLogin. Asking rev.eng. strategy
WARNING [org.hibernate.cfg.reveng.JDBCReader]: Rev.eng. strategy did not report any primary key columns for UserLogin
WARNING [org.hibernate.cfg.reveng.JDBCReader]: The JDBC driver didn't report any primary key columns in UserStatus. Asking rev.eng. strategy
WARNING [org.hibernate.cfg.reveng.JDBCReader]: Rev.eng. strategy did not report any primary key columns for UserStatus
WARNING [org.hibernate.cfg.JDBCBinder]: Cannot create persistent class for org.hibernate.mapping.Table(public.Address) as no columns were found.
WARNING [org.hibernate.cfg.JDBCBinder]: Cannot create persistent class for org.hibernate.mapping.Table(public.Country) as no columns were found.
WARNING [org.hibernate.cfg.JDBCBinder]: Cannot create persistent class for org.hibernate.mapping.Table(public.User) as no columns were found.
WARNING [org.hibernate.cfg.JDBCBinder]: Cannot create persistent class for org.hibernate.mapping.Table(public.UserAccount) as no columns were found.
WARNING [org.hibernate.cfg.JDBCBinder]: Cannot create persistent class for org.hibernate.mapping.Table(public.UserLogin) as no columns were found.
WARNING [org.hibernate.cfg.JDBCBinder]: Cannot create persistent class for org.hibernate.mapping.Table(public.UserStatus) as no columns were found.

Solution:

  • Make sure all the table and primary key column names are in lower case.
  • Delete the hibernate reverse engineering configuration file and recreate it.
  • Run the wizard to generate mapping files and POJOs.

It did work for me.

Categories: Programming

The beauty of Windows update server

December 21, 2009 Leave a comment

Uganda’s internet connectivity is known by Slow and expensive connections with less available bandwidth. Though this is expected to change with time due to the landing of the SEACOM cable in Kampala.

My experience in Uganda for the networks I have helped troubleshoot has helped me realize that Windows updates are little known and under looked by many administrators when it comes to troubleshooting slow links.

Most network administrators don’t have any kind of networking monitoring software and  this results to always complain to the ISP about slow links. In return ISP’s normally stand their ground that their is no problem on their side. Communicating back and forth and sometimes sharp words are exchanged between ISP Customer service and Clients. Read more…

Categories: Networking, Uganda, Windows

Uganda Telecommunication Industry MTN, UTL, Zain, Warid ,Orange, Smile

December 21, 2009 1 comment

Uganda’s telecommunication sector has seen linear growth from one to six (December 2009) mobile operators.  Due to stiff competition for clientele, subscribers are enjoying good local and international call rates. The number of Value Added Service applications has shot up.

This year (2009) the SEACOM cable landed in Uganda, this has led to the shift in pricing schemes for internet connectivity. Internet has become cheaper for example an MTN link that was worth 1000+ dollars, now you can get it at 600 dollars and with better speeds. Read more…

Back to Gombe S S

December 21, 2009 4 comments

Today I have been to Gombe S S to pick my A-Level Certificate. I decided to drive their to avoid the discomfort of taxis. Talk of comfort, things haven’t changed. Peeped into a taxi and 4 or 5 passengers a row. Gombe  still looks good after seven years of not stepping there. The school compound is still well maintained in color green. I met some of my old teachers like Kiddu, Kuteesa, Kiwanuka etc. To my surprise i also met some of my old colleagues as teachers. Its strange how people grow up and change. Read more…

Categories: Uganda

XBMC Linux media center

December 21, 2009 Leave a comment

I attended the Uganda Linux User group at EACOSS on 18th december, 2009. The discussion that captured my attention was how to improve the IT sector in Uganda, how to improve the IT academic quality of students leaving University.  Different attendees gave their opinions, if you are a member  of Linux user group and didn’t attend shame on you.  This was my first time to attend a LUG meeting. It raises hope in the Uganda open source community.

Back to media centers:-

For the last days, I have been using my spare time researching how to make my gnome desktop fun and easy to use for me and young siblings. I needed to setup a sleek media center,  and windowing manager. Linux has quite a number of media center solutions, here is a small list. Read more…

Categories: Linux