Dear All!
I have a painful problem regarding Java Hibernate. I have my own POJO classes in my modell, and I would like to submit query from an instance of that class, to a table of my relational DB. The problem is, that I want to submit several different queries to different tables. For example: I have a Bus class, representing buses. I have a BusesOnTheLine table, a BusesWaitingForRepair table. Now sometimes I have to add a new line to BusesOnTheLine table, sometimes to the other. Each table has its own scheme, so I do not have a (bijective) one-to-one correspondence. I guess there should be a service class like it is in .NET, that might has a method for each of these queries with HQL (Hibernate Query Langugage) but I am not able to find it. :( Any idea about the solution?