Skip to main content
summaryrefslogtreecommitdiffstats
blob: fb8d74cb6a2392048f8a1231be8487a447dc789c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="beanModel.xsd">
  <beanModel basePackage="org.example" name="Library">
    <bean name="Library">
      <attribute kind="FIELD" name="name" type="String"/>
      <attribute kind="FIELD" name="yearFounded" type="int"/>
      <attribute kind="DERIVED" name="yearsOpen" type="int"/>
      <attribute kind="LIST" name="books" type="Book"/>
      <attribute kind="LIST" name="authors" type="Author"/>
    </bean>
    <bean name="Book">
    	<attribute kind="FIELD" name="title" type="String"/>
    	<attribute kind="FIELD" name="pages" type="int"/>
    	<attribute kind="LIST" name="author" type="Author"/>
    </bean>
    <bean name="Author">
    	<attribute kind="FIELD" name="name" type="String"/>
    	<attribute kind="LIST" name="books" type="Book"/>
    </bean>
  </beanModel>
</root>

Back to the top