[hibernate-issues] [Hibernate-JIRA] Created: (HHH-4479) We should be able to implement Joins using formulas with Annotations

Sharath Reddy (JIRA) noreply at atlassian.com
Wed Oct 7 07:44:42 EDT 2009


We should be able to implement Joins using formulas with Annotations 
---------------------------------------------------------------------

                 Key: HHH-4479
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4479
             Project: Hibernate Core
          Issue Type: New Feature
          Components: annotations
            Reporter: Sharath Reddy
            Assignee: Sharath Reddy
            Priority: Minor



This article published on the O'Reilly web site - http://onjava.com/pub/a/onjava/2005/08/03/hibernate.html?page=3 - describes how to implement joins with formulas, using the hbm xml files. We should be able to do the same with annotations: 

<hibernate-mapping>
  <class name="Company" table="Company">
    <id name="id" />
    <many-to-one 
      name="defaultContactPerson" 
      property-ref="defaultContactPerson">
        <column name="id"/>
        <formula>1</formula>
        </many-to-one>
  </class>
  <class name="Person" >
    <id name="id" />
    <properties name="defaultContactPerson">
        <property name="companyID" />
        <property name="defaultFlag" />
    </properties>
  </class>
</hibernate-mapping>




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list