Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dump row data into a string text

 
Tariq Ahsan
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

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.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic