This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
and i need other table to join it with many-to-one relationship:
the name="kategoria" stands for name of column in Zadanie table which contains id value of Ciselnik table. But the problem is that my class Zadanie contans only ID column of Ciselnik class and i need to specify typ and jazyk in HQL Query, but i have no idea what i need to specify in my Zadanie class and how to write HQL Query.
Please keep in mind that i'm very new to hibernate and and i'm rewriting existing model to use hibernate, so i wouldn't like to change DB schema.