I was wondering if it is possible to get the whole row data with selective columns dumped into a String variable preserving spaces if it exists. I have been able to some way get individual column data of a table and padded with spaces based on the column length and then construct a single line string text. But if there is already way to do it easily in Hibernate it would surely make it lot easier. Also, would it be possible to create a generic utility where all this string text construction can be handled easily by just passing the persistence entity object? Basically I am trying to create a fixed length file with the data from the entity object.