<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>net.osgiliath.samples</groupId>
		<artifactId>net.osgiliath.sample.webapp</artifactId>
		<version>0.3.7</version>
	</parent>
	<artifactId>net.osgiliath.sample.webapp.model</artifactId>
	<packaging>pom</packaging>
	<name>Helloworld sample Model (e.g. persistence) pom</name>
	<description>Pom for model (persistence) modules</description>
	<profiles>
		<profile>
			<id>dev-db</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<properties>
				<jdbc.groupId>org.apache.derby</jdbc.groupId>
				<jdbc.clientArtifactId>derbyclient</jdbc.clientArtifactId>
				<jdbc.networkArtifactId>derbynet</jdbc.networkArtifactId>
				<jdbc.serverArtifactId>derby</jdbc.serverArtifactId>
				<jdbc.version>${derby.version}</jdbc.version>
				<jdbc.driverClassName>org.apache.derby.jdbc.ClientDriver</jdbc.driverClassName>
				<jdbc.url>jdbc:derby://localhost:1527/memory:${project.parent.artifactId}.database</jdbc.url>
				<jdbc.username>${database.user}</jdbc.username>
				<jdbc.password>${database.password}</jdbc.password>
			</properties>
		</profile>
		<profile>
			<id>prod-db</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<properties>
				<jdbc.prod.groupId>org.apache.derby</jdbc.prod.groupId>
				<jdbc.prod.clientArtifactId>derbyclient</jdbc.prod.clientArtifactId>
				<jdbc.prod.networkArtifactId>derbynet</jdbc.prod.networkArtifactId>
				<jdbc.prod.serverArtifactId>derby</jdbc.prod.serverArtifactId>
				<jdbc.prod.version>${derby.version}</jdbc.prod.version>
				<jdbc.prod.driverClassName>org.apache.derby.jdbc.ClientDriver</jdbc.prod.driverClassName>
				<jdbc.prod.url>jdbc:derby://localhost:${database.port}/${project.parent.artifactId}.database</jdbc.prod.url>
				<jdbc.prod.username>${database.user}</jdbc.prod.username>
				<jdbc.prod.password>${database.password}</jdbc.prod.password>
			</properties>
		</profile>
	</profiles>
	<modules>
		<module>net.osgiliath.sample.webapp.model.daos</module>
		<module>
			net.osgiliath.sample.webapp.model.entities
		</module>
	</modules>
</project>