-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
1,019 additions
and
266 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
initscript { | ||
repositories { mavenCentral() } | ||
dependencies { | ||
classpath group:'com.blackducksoftware.integration', name: 'hub-gradle-plugin', version: System.properties['bdsPluginVersion'] | ||
} | ||
} | ||
|
||
allprojects { | ||
apply plugin: com.blackducksoftware.integration.gradle.HubGradlePlugin | ||
|
||
buildBom{ | ||
deployHubBdio false | ||
} | ||
} |
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
9 changes: 7 additions & 2 deletions
9
examples/grails/rdbms_mongo/grails-app/domain/grooves/grails/mongo/Patient.groovy
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 |
---|---|---|
@@ -1,22 +1,27 @@ | ||
package grooves.grails.mongo | ||
|
||
// tag::documented[] | ||
import com.github.rahulsom.grooves.groovy.transformations.Aggregate | ||
import com.github.rahulsom.grooves.api.AggregateType | ||
import groovy.transform.EqualsAndHashCode | ||
|
||
// end::documented[] | ||
/** | ||
* Represents a Patient | ||
* | ||
* @author Rahul Somasunderam | ||
*/ | ||
@Aggregate | ||
// tag::documented[] | ||
@Aggregate // <1> | ||
@EqualsAndHashCode(includes = ['uniqueId']) | ||
class Patient implements AggregateType<Long> { | ||
class Patient implements AggregateType<Long> { //<2> | ||
|
||
// Long id // <3> | ||
String uniqueId | ||
static constraints = { | ||
} | ||
|
||
@Override String toString() { "Patient($id, $uniqueId)" } | ||
|
||
} | ||
// end::documented[] |
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
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
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
Oops, something went wrong.