1. Making hibernate not include fields from joined tables in select clause stackoverflow.comI'm running into a performance problem in my SQL using Hibernate's DetachedCriteria. I have a few many-to-one relationships and when Hibernate generates the SQL it's including all of the fields from ... |
2. How to get field joined by third table in JPA stackoverflow.comI have 3 tables: object with object_id and field_name object_form with object_id and form_id and object_fields with form_id and field_desc So I can get all the objects with field_names, but I need to get field_desc. ... |
3. Hibernate Criteria for inner join full entity class field stackoverflow.comMy Entity Model Class are
|
4. single valued field + join forum.hibernate.org@Entity public class Post { private long id; private String title; public Post() { } @Id @GeneratedValue(strategy = GenerationType.AUTO) public long getId() { ... |
5. Hibernate Criteria for inner join full entity class field forum.hibernate.orgMy Entity Model Class are ------- A ----------- rivate static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @Column(name = "NameA") private String nameA; public B getBid() { return b; } public void setBid(B bid) { this.b = bid; } public String getNameA() { return nameA; } public void setNameA(String nameA) { this.nameA = nameA; } @JoinColumn(name ... |
6. Hibernate Criteria inner join get full entity class field forum.hibernate.orgHello guys again, I have two model Entitiy class.their name is A and B. @Entity public class A implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @Column(name = "NameA") private String nameA; public B getBid() { return b; } public void setBid(B bid) { this.b = bid; } public String getNameA() { ... |
7. Can I update an updatable field in a joined view forum.hibernate.org |
8. Many-to-many with extra field in the join table forum.hibernate.orgHi I have a many-to-many (bidirectional) relationship working. I now want to add an extra field to the join table and let one of the sides populate with this field. Is this possible? For example A (mapped to table A) has a collection of Bs. B (mapped to table B) has a collection of As. Can each A instance here fetch ... |
9. Joining On Aggregate Fields forum.hibernate.orgI'm relatively new to Hibernate but have been working with SQL for over a dozen years. I'm using DB2 running on the iSeries and using Hibernate 3.1.2. I have a query where I'm joining two different objects (tables) where the documentId of one is the most recent revision of a set of revisions for that document. I've come up with two ... |
10. problem with getting extra field from join table forum.hibernate.orgHello, I have a problem with accessing a field of a join table. Underneath you'll find the table-structure: ------- table PERSON(ID, NAME) table PERSON_PROJECT(PERSON_ID, PROJECT_ID, extra_column) table PROJECT (ID, NAME) The tables PERSON and PROJECT have a many-to-many relationship with each other. ------- In the PERSON mapping file and in the PROJECT mapping file i created a Set, so that my ... |
11. LEFT OUTER JOIN on two fields forum.hibernate.org |
12. Don't show join's field in select clause forum.hibernate.org@Entity @SequenceGenerator(name="gen_colaborador", sequenceName="gen_colaborador") @DisplayName("Colaborador") public class Colaborador implements User { ... protected Set |
13. Using Criteria for joined class fields forum.hibernate.orgNewbie Joined: Wed Jan 23, 2008 10:02 am Posts: 3 Scenario: I've got this class join chain (all of them 'many-to-one' and using fetch="join": Ticket -> Identita -> Cliente Within Ticket i have a identita:Identita field within Identita I have a cliente:Cliente field I need to express a filter clause over a property of Cliente (say: "name"), which is NOT the ... |