title: Force hibernate to NOT retrieve full object
body: <p>i am given a task at work where I have to use hibernate and some classes which are mapped to views. The task says, that i should create a select on one view which does not return a complete object of the class, but an object with just some attributes of the class initialized. i first thought about creating a constructor which only gets these fields as parameter, but I can't find any solution on the web, which holds both possibilities open (parts of the class and full class). Any suggestion is welcome. If you need any code or further explanation, ask for it.</p>