JTable and JPA Pagination through custom TableModel

I really want to talk about JTable, Beans Binding and JPA pagination but I think I need to write about JTable and JPA pagination first. So I will take the Beans binding stuff in another post. By the way, choose wisely your JPA Provider/DB Provider combination, as some combinations will not give you any real paginations at all. For example, neither OpenJPA, Hibernate or TopLink/EclipseLink seems to support Apache Derby pagination (OFFSET/FETCH). The example here uses Derby and TopLink which is a bad example because the JPA pagination doesn’t get translated to SQL command for pagination. So if you really want proper pagination you should use other combination like Hibernate JPA/HSQLDB. ...

August 17, 2009

Hard disk odyssey!

Wow! Today is a great day I thought I missed my iTunes library and outlook email but I managed to recover it. I’m not really sure how it happened. All began when I moved my old 60GB hard disk to another PC as an extra disk (not boot disk). The other PC had Windows XP installed in its main 250Gb hard disk. I didn’t notice at first but the BIOS didn’t recognized the 60GB disk correctly (wrong size, wrong id) and when I started the Disk Administrator in Windows, it warned me that the disk had’nt a signature and asked me to write a new one. I clicked OK and I think that screwed up the whole disk. As I found later, it ended up with a corrupted MBR and NTFS bootsector. I decided to reboot to see BIOS messages about the disk and now I noticed that size was wrong, etc. I changed the IDE cable (weird cabling problem), rebooted and now the size was ok but I couldn’t mount it in Windows, it didn’t recognized it as a NTFS volume. ...

February 20, 2007