Sorry, forgot to post the CompanyId class.  By the way, this was all generated 
with the jbosside 1.5 hibernate tools.

/**

 * SecCompanyId generated by hbm2java

 */

@Embeddable

public class SecCompanyId

        implements java.io.Serializable

{



        // Fields    



        private Integer companyId;

        private Character typeId;



        // Constructors



        /** default constructor */

        public SecCompanyId()

        {

        }



        /** full constructor */

        public SecCompanyId(Integer companyId, Character typeId)

        {

                this.companyId = companyId;

                this.typeId = typeId;

        }



        // Property accessors

        @Column(name = "company_id", unique = false, nullable = false, 
insertable = true, updatable = true)

        public Integer getCompanyId()

        {

                return this.companyId;

        }



        public void setCompanyId(Integer companyId)

        {

                this.companyId = companyId;

        }



        @Column(name = "type_id", unique = false, nullable = false, insertable 
= true, updatable = true, length = 1)

        public Character getTypeId()

        {

                return this.typeId;

        }



        public void setTypeId(Character typeId)

        {

                this.typeId = typeId;

        }



        public boolean equals(Object other)

        {

                if ((this == other))

                        return true;

                if ((other == null))

                        return false;

                if (!(other instanceof SecCompanyId))

                        return false;

                SecCompanyId castOther = (SecCompanyId) other;



                return ((this.getCompanyId() == castOther.getCompanyId()) || 
(this.getCompanyId() != null

                        && castOther.getCompanyId() != null && 
this.getCompanyId().equals(castOther.getCompanyId())))

                        && ((this.getTypeId() == castOther.getTypeId()) || 
(this.getTypeId() != null

                                && castOther.getTypeId() != null && 
this.getTypeId().equals(castOther.getTypeId())));

        }



        public int hashCode()

        {

                int result = 17;



                result = 37 * result + (getCompanyId() == null ? 0 : 
this.getCompanyId().hashCode());

                result = 37 * result + (getTypeId() == null ? 0 : 
this.getTypeId().hashCode());

                return result;

        }



}

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922389#3922389

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922389


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to