Skip to main content
summaryrefslogtreecommitdiffstats
blob: bd34f574bc77919f48c7fd38f74c2bcd8078e8bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="UTF-8"?>
<beans:root xmlns:beans="http://www.example.org/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.example.org/beans beans.xsd ">
  <project name="test.beans">
    <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="authors" type="Author"/>
      </bean>
      <bean name="Author">
      	<attribute kind="FIELD" name="name" type="String">
      		<doc>doc for Author.name</doc>
      	</attribute>
      	<attribute kind="LIST" name="books" type="Book"/>
      </bean>
    </beanModel>
  </project>
</beans:root>

Back to the top