1. How do I specify a multi-column id in orm xml for a JPA entity? stackoverflow.comI'm trying to create a JPA Entity backed by a view which does not have an id. The rows are uniquely defined by two columns, product id and node id. How ... |
2. Hibernate Entity dependant on column value stackoverflow.comIs it possible with Hibernate to have a single table in the database, which stores multiple types of entities, differentiated by the value of some column? I've got an application that uses ... |
3. Id column comes from other table JPA entities stackoverflow.comI have two tables in my DB. Table1 with ID and some other columns. Table2 is a relations table where I have the PK from table1 as id in table2 but ... |
4. one-to-one and one-to-many to the same column and entity forum.hibernate.orgHibernate version: 3.2.3 I have two entities with two associations between them: * a one-to-one association * a one-to-many association Mapping documents: @Entity @Table(name = "envase") public class Envase { private EstadoEnvase estadoActual; private Set |
5. Entity with lots of columns... forum.hibernate.orgI have this class Award mapping the Award table that has a lots of columns(30). When I do list awards I don't need more than few things (id, description) if I use a projection sql-query like below that will do it. If I use hql that is way too slow because the extra work performed to fetch 30 columns per award. ... |