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
select dd.DD_DATE, lea.LOGIN_COUNT, lea.UNIQUE_LOGIN_COUNT | |
from UP_DATE_DIMENSION dd | |
left join UP_LOGIN_EVENT_AGGREGATE lea on | |
dd.DATE_ID = lea.DATE_DIMENSION_ID and lea.INTERVAL='DAY' and lea.AGGREGATED_GROUP_ID = (select agm.ID from UP_AGGREGATE_GROUP_MAPPING agm where agm.GROUP_NAME='Everyone') | |
where dd.DD_YEAR = 2012 and dd.DD_MONTH=1 |
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
protected CriteriaQuery<LoginAggregationImpl> buildFindLoginAggregationsByDateRangeQuery(final CriteriaBuilder cb) { | |
final CriteriaQuery<LoginAggregationImpl> criteriaQuery = cb.createQuery(LoginAggregationImpl.class); | |
final Root<DateDimensionImpl> root = criteriaQuery.from(DateDimensionImpl.class); | |
final CollectionJoin<DateDimensionImpl, LoginAggregationImpl> loginAggrJoin = root.join(DateDimensionImpl_.loginAggregations, JoinType.LEFT); | |
criteriaQuery.select(loginAggrJoin); | |
criteriaQuery.where( | |
cb.and( | |
cb.between(root.get(DateDimensionImpl_.date), this.startDate, this.endDate), |
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
<?xml version="1.0" ?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsql="urn:oracle-xsql" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xml.apache.org/fop/extensions" version="1.0"> | |
<xsl:output method="xml" indent="no"/> | |
<xsl:template match="/"> | |
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> | |
<!-- defines the layout master --> | |
<fo:layout-master-set> | |
<!-- defines the layout of a page --> | |
<fo:simple-page-master master-name="simple" |
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
## Query using: criteria.add( Restrictions.naturalId().set( "ssn", "1234" ).set( "state", france ) ); | |
select | |
this_.id as id0_1_, | |
this_.firstname as firstname0_1_, | |
this_.lastname as lastname0_1_, | |
this_.ssn as ssn0_1_, | |
this_.state_id as state5_0_1_, | |
state2_.id as id1_0_, | |
state2_.name as name1_0_ |
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
<bean id="fluidWikiWriter" class="org.jasig.irclog.ConfluenceEventWriter"> | |
<!-- The 'confluenceFormatter' bean is defined as part of the main log bot application context --> | |
<property name="eventFormatter" ref="confluenceFormatter" /> | |
<property name="confluenceServer" ref="fluidWikiServer"/> | |
<property name="spaceKey" value="fluid" /> | |
<property name="pageNames"> | |
<list> | |
<value>'fluid-tech IRC Logs'</value> | |
<value>'fluid-tech IRC Logs-'yyyy</value> |
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
#!/bin/bash | |
$ANT_HOME/bin/ant $@ | |
RETCODE=$? | |
BUILD_DIR=${PWD##*/} | |
if [ $RETCODE -eq 0 ] | |
then | |
notify-send --category=ANT,BUILD "$BUILD_DIR: Ant Build successful" | |
else | |
notify-send --category=ANT,BUILD "$BUILD_DIR: Ant Build failed" |
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
@Override | |
public void evictNaturalIdResolution(EntityPersister persister, final Serializable pk, Object[] naturalIdValues) { | |
if ( !persister.hasNaturalIdentifier() ) { | |
throw new IllegalArgumentException( "Entity did not define a natrual-id" ); | |
} | |
if ( naturalIdValues != null && persister.getNaturalIdentifierProperties().length != naturalIdValues.length ) { | |
throw new IllegalArgumentException( "Mismatch between expected number of natural-id values and found." ); | |
} | |
NaturalIdResolutionCache entityNaturalIdResolutionCache = naturalIdResolutionCacheMap.get( persister ); |
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
diff --git a/build.gradle b/build.gradle | |
index 73116a5..a7dbb41 100644 | |
--- a/build.gradle | |
+++ b/build.gradle | |
@@ -66,6 +66,9 @@ libraries = [ | |
// Jakarta commons-collections todo : get rid of commons-collections dependency | |
commons_collections: | |
'commons-collections:commons-collections:3.2.1', | |
+ // Google Guava | |
+ guava: |
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
<layout xmlns:dlm="http://www.uportal.org/layout/dlm" script="classpath://org/jasig/portal/io/import-layout_v3-2.crn" username="mum-lo-academics"> | |
<folder ID="s1" hidden="false" immutable="false" name="Root folder" type="root" unremovable="true"> | |
<folder ID="s2" hidden="true" immutable="true" name="Header folder" type="header" unremovable="true"> | |
<channel fname="fragment-admin-exit" unremovable="false" hidden="false" immutable="false" ID="n12"/> | |
</folder> | |
<folder ID="s3" hidden="false" immutable="true" name="Footer folder" type="footer" unremovable="true"> | |
</folder> | |
<folder ID="s4" dlm:deleteAllowed="false" dlm:editAllowed="false" hidden="false" immutable="false" name="Academics" type="regular" unremovable="false"> | |
<folder ID="s5" dlm:deleteAllowed="false" hidden="false" immutable="false" name="Column" type="regular" unremovable="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
<plugin> | |
<artifactId>maven-javadoc-plugin</artifactId> | |
<version>2.7</version> | |
<executions> | |
<execution> | |
<id>attach-javadocs</id> | |
<goals> | |
<goal>jar</goal> | |
</goals> | |
</execution> |