This repository has been archived by the owner on May 26, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added profiles section and resource filtering to pom.xml
- agent name and endpoint information can be now configured in pom.xml - database information can be now configured in pom.xml - Modified generated test to actually inform a fact to the agent
- Loading branch information
1 parent
3a80888
commit 4a5a008
Showing
5 changed files
with
143 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...-web-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/orm.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_1_0.xsd" | ||
version="1.0"> | ||
<entity class="org.drools.grid.service.directory.impl.AddressImpl" access="FIELD"> | ||
<table name="Address"/> | ||
|
||
<attributes> | ||
<id name="addressId"> | ||
</id> | ||
<many-to-one name="gridServiceDescription" target-entity="org.drools.grid.service.directory.impl.GridServiceDescriptionImpl" /> | ||
</attributes> | ||
</entity> | ||
|
||
<entity class="org.drools.grid.service.directory.impl.GridServiceDescriptionImpl" access="FIELD"> | ||
<table name="GridServiceDescription"/> | ||
|
||
<attributes> | ||
<id name="descId" /> | ||
<basic name="ownerGridId"/> | ||
<one-to-many name="addresses" mapped-by="gridServiceDescription" target-entity="org.drools.grid.service.directory.impl.AddressImpl" fetch="EAGER" > | ||
<map-key name="transport" /> | ||
<cascade> | ||
<cascade-all/> | ||
</cascade> | ||
</one-to-many> | ||
|
||
</attributes> | ||
</entity> | ||
|
||
<entity class="org.drools.grid.timer.impl.ScheduledJob" access="FIELD"> | ||
<table name="ScheduledJob"/> | ||
|
||
<attributes> | ||
<id name="jobId" /> | ||
<transient name="jobHandle" /> | ||
</attributes> | ||
</entity> | ||
</entity-mappings> |
22 changes: 22 additions & 0 deletions
22
...hetype/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:orm="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"> | ||
<persistence-unit name="org.drools.grid"> | ||
<provider>org.hibernate.ejb.HibernatePersistence</provider> | ||
<class>org.drools.grid.service.directory.impl.GridServiceDescriptionImpl</class> | ||
<class>org.drools.grid.service.directory.impl.AddressImpl</class> | ||
<class>org.drools.grid.timer.impl.ScheduledJob</class> | ||
<class>java.lang.String</class> | ||
|
||
<properties> | ||
<property name="hibernate.dialect" value="${db.dialect}"/> | ||
<property name="hibernate.connection.driver_class" value="${db.driverClass}"/> | ||
<property name="hibernate.connection.url" value="${db.connectionURL}"/> | ||
<property name="hibernate.connection.username" value="${db.username}"/> | ||
<property name="hibernate.connection.password" value="${db.password}"/> | ||
<property name="hibernate.connection.autocommit" value="false"/> | ||
<property name="hibernate.max_fetch_depth" value="3"/> | ||
<property name="hibernate.hbm2ddl.auto" value="update"/> | ||
<property name="hibernate.show_sql" value="false"/> | ||
</properties> | ||
</persistence-unit> | ||
</persistence> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters