Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

If somebody can translate this for me please?

 
Angel Fontanet
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping
>
<class
name="com.uig.unica.core.components.party.domain.orm.AbstractPartyRole"
table="PARTY_ROLE"
lazy="false"
dynamic-update="true"
dynamic-insert="true"
>

<id
name="ID"
column="PARTY_ROLE_ID"
type="java.lang.Long"
unsaved-value="null"
>
<generator class="sequence">
<param name="sequence">PARTY_SEQ</param>
<!--
To add non XDoclet generator parameters, create a file named
hibernate-generator-params-AbstractPartyRole.xml
containing the additional parameters and place it in your merge dir.
-->
</generator>
</id>

<many-to-one
name="party"
class="com.uig.unica.core.components.party.domain.orm.Party"
cascade="none"
outer-join="auto"
update="true"
insert="true"
column="PARTY_ID"
not-null="true"
/>

<many-to-one
name="roleType"
class="com.uig.unica.core.components.party.domain.orm.RoleType"
cascade="none"
outer-join="auto"
update="true"
insert="true"
column="ROLE_TYPE_ID"
not-null="true"
/>

<set
name="partyRelationshipFrom"
lazy="true"
inverse="true"
cascade="all"
sort="unsorted"
>

<key
column="PARTY_ROLE_ID_FROM"
>
</key>

<one-to-many
class="com.uig.unica.core.components.party.domain.orm.PartyRelationship"
/>

</set>

<set
name="partyRelationshipTo"
lazy="true"
inverse="true"
cascade="all"
sort="unsorted"
>

<key
column="PARTY_ROLE_ID_TO"
>
</key>

<one-to-many
class="com.uig.unica.core.components.party.domain.orm.PartyRelationship"
/>

</set>

<property
name="validFrom"
type="java.util.Date"
update="true"
insert="true"
column="VALID_FROM"
length="7"
not-null="true"
/>

<property
name="validThru"
type="java.util.Date"
update="true"
insert="true"
column="VALID_THRU"
/>

<!--
To add non XDoclet property mappings, create a file named
hibernate-properties-AbstractPartyRole.xml
containing the additional properties and place it in your merge dir.
-->

<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.OrganizationRole"
table="ORGANIZATION_ROLE"
dynamic-update="true"
dynamic-insert="true"
>
<key
column="PARTY_ROLE_ID"
/>

</joined-subclass>
<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.AbstractPersonRole"
table="PERSON_ROLE"
dynamic-update="true"
dynamic-insert="true"
>
<key
column="PARTY_ROLE_ID"
/>

<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.InsuranceSupportStaff"
table="INSURANCE_SUPPORT_STAFF"
dynamic-update="true"
dynamic-insert="true"
>
<key
column="PARTY_ROLE_ID"
/>

<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.WFTaskDelegate"
table="WF_TASK_DELEGATE"
dynamic-update="true"
dynamic-insert="true"
>
<key
column="PARTY_ROLE_ID"
/>

</joined-subclass>
<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.Underwriter"
table="UNDERWRITER"
dynamic-update="true"
dynamic-insert="true"
>
<key
column="PARTY_ROLE_ID"
/>
<property
name="code"
type="java.lang.String"
update="true"
insert="true"
column="CODE"
length="28"
not-null="true"
/>

</joined-subclass>
<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.Supervisor"
table="SUPERVISER"
dynamic-update="true"
dynamic-insert="true"
>
<key
column="PARTY_ROLE_ID"
/>

</joined-subclass>
<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.WFTaskApprover"
table="WF_TASK_APPROVER"
dynamic-update="true"
dynamic-insert="true"
>
<key
column="PARTY_ROLE_ID"
/>

</joined-subclass>
<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.Producer"
table="PRODUCER"
dynamic-update="true"
dynamic-insert="true"
>
<key
column="PARTY_ROLE_ID"
/>
<property
name="code"
type="java.lang.String"
update="true"
insert="true"
column="CODE"
length="28"
not-null="true"
/>

</joined-subclass>

</joined-subclass>
<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.Driver"
table="DRIVER"
dynamic-update="true"
dynamic-insert="true"
>
<key
column="PARTY_ROLE_ID"
/>
<property
name="licNumber"
type="java.lang.String"
update="true"
insert="true"
column="LICNUMBER"
length="12"
/>

<many-to-one
name="licState"
class="com.uig.unica.core.components.catalog.domain.orm.PropertyTypePosibleValues"
cascade="none"
outer-join="auto"
update="true"
insert="true"
column="LICSTATE"
not-null="false"
/>

<property
name="expDate"
type="java.util.Date"
update="true"
insert="true"
column="EXP_DATE"
length="12"
/>

<property
name="effDate"
type="java.util.Date"
update="true"
insert="true"
column="EFF_DATE"
length="12"
/>

</joined-subclass>
<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.Employee"
table="EMPLOYEE"
dynamic-update="true"
dynamic-insert="true"
>
<key
column="PARTY_ROLE_ID"
/>

</joined-subclass>
<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.InsuranceAgent"
table="INSURANCE_AGENT"
dynamic-update="true"
dynamic-insert="true"
>
<key
column="PARTY_ROLE_ID"
/>
<property
name="code"
type="java.lang.String"
update="true"
insert="true"
column="CODE"
length="28"
not-null="true"
/>

</joined-subclass>
<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.Prospect"
table="PROSPECT"
dynamic-update="true"
dynamic-insert="true"
>
<key
column="PARTY_ROLE_ID"
/>

</joined-subclass>

</joined-subclass>
<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.AbstractOrganizationRole"
table="ORGANIZATION_ROLE"
dynamic-update="true"
dynamic-insert="true"
lazy="false"
>
<key
column="PARTY_ROLE_ID"
/>

<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.Dealer"
table="DEALER"
dynamic-update="true"
dynamic-insert="true"
lazy="false"
>
<key
column="PARTY_ROLE_ID"
/>
<property
name="code"
type="java.lang.String"
update="true"
insert="true"
column="CODE"
length="28"
not-null="true"
/>

</joined-subclass>
<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.InsuranceAgency"
table="INSURANCE_AGENCY"
dynamic-update="true"
dynamic-insert="true"
lazy="false"
>
<key
column="PARTY_ROLE_ID"
/>
<property
name="code"
type="java.lang.String"
update="true"
insert="true"
column="CODE"
length="28"
not-null="true"
/>

<property
name="imageRoute"
type="java.lang.String"
update="true"
insert="true"
column="IMAGE_ROUTE"
/>

<property
name="signatureRoute"
type="java.lang.String"
update="true"
insert="true"
column="SIGNATURE_ROUTE"
/>

<property
name="cadSignatureRoute"
type="java.lang.String"
update="true"
insert="true"
column="CAD_SIGNATURE_ROUTE"
/>

</joined-subclass>
<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.Bank"
table="BANK"
dynamic-update="true"
dynamic-insert="true"
lazy="false"
>
<key
column="PARTY_ROLE_ID"
/>
<property
name="code"
type="java.lang.String"
update="true"
insert="true"
column="CODE"
length="28"
not-null="true"
/>

</joined-subclass>
<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.OrganizationUnit"
table="ORGANIZATION_UNIT"
dynamic-update="true"
dynamic-insert="true"
lazy="false"
>
<key
column="PARTY_ROLE_ID"
/>

<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.Division"
table="DIVISION"
dynamic-update="true"
dynamic-insert="true"
lazy="false"
>
<key
column="PARTY_ROLE_ID"
/>

</joined-subclass>

</joined-subclass>
<joined-subclass
name="com.uig.unica.core.components.party.domain.orm.InsuranceProvider"
table="INSURANCE_PROVIDER"
dynamic-update="true"
dynamic-insert="true"
lazy="false"
>
<key
column="PARTY_ROLE_ID"
/>
<property
name="code"
type="java.lang.String"
update="true"
insert="true"
column="CODE"
length="28"
not-null="true"
/>

<property
name="imageRoute"
type="java.lang.String"
update="true"
insert="true"
column="image_route"
/>

<set
name="derramas"
lazy="true"
inverse="true"
cascade="all"
sort="unsorted"
>

<key
column="PARTY_ROLE_ID"
>
</key>

<one-to-many
class="com.uig.unica.core.components.party.domain.orm.Derrama"
/>

</set>

</joined-subclass>

</joined-subclass>

</class>

</hibernate-mapping>
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, it translates into somebody who isn't really sure about what they're doing, and not exactly sure what they're posting, and a bunch of people on the JavaRanch not knowing what the heck you are asking for.

You've just posted a huge amount of XML. What do you expect people here at JavaRanch to do for you?

If you have a question, please ask it and we will try to help. But don't just post a bunch of jibberish and say 'translate this for me.' You really have to help us help you.

-Cameron McKenzie
 
Angel Fontanet
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, This is a hibernate hbm. I would like to know the Herachy that is back on this. Thanks




Cameron Wallace McKenzie wrote:Well, it translates into somebody who isn't really sure about what they're doing, and not exactly sure what they're posting, and a bunch of people on the JavaRanch not knowing what the heck you are asking for.

You've just posted a huge amount of XML. What do you expect people here at JavaRanch to do for you?

If you have a question, please ask it and we will try to help. But don't just post a bunch of jibberish and say 'translate this for me.' You really have to help us help you.

-Cameron McKenzie





 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I don't really understand the question - could you try rewording it and we can see if anyone can help?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button.

Are you basically asking somebody to tell you what that 500 lines of XML means?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here it is a bit cleaner:That's a lot of joined subclasses.
 
Angel Fontanet
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks a lot. Is more good now to see.



David Newton wrote:Here it is a bit cleaner:That's a lot of joined subclasses.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic