View CustomDatabaseConfig.java
@Configuration
public class CustomDatabaseAutoConfiguration extends DatabaseAutoConfiguration {
protected DataSource buildDataSource() {
DatabaseDriver driver = DatabaseDriver.fromJdbcUrl(props.getUrl());
com.zaxxer.hikari.HikariDataSource ds = DataSourceBuilder
.create()
.username(props.getUser())
.password(props.getPassword())
View transaction.java
class X {
@Autowired
private X me;
@Transactional
foo() {
}
@Transactional
View Invalidation.java
@Component
public class SkuInvalidator {
@Autowired
private SystemEventSender eventSender;
public void invalidateSku(Long id) {
SystemEvent event = new SystemEventImpl();
event.setType(EventType.CACHE_INVALIDATION.getType());
event.setEnabled(true);
View versions.coffee
# Description
# Look at versions for our various modules and how they relate to framework versions
#
# Dependencies:
# "octonode": "^0.6.4"
# "xml2js": "^0.4.4"
#
# Configuration:
# HUBOT_GITHUB_TOKEN - API token from a GitHub account
#
View ntp.conf
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
driftfile /var/lib/ntp/ntp.drift
# Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
View eric-text.html
<b>this is some bold html</b>
<br />
<br />
<p>Now after a couple of line breaks, I have a new paragraph</p>
<p>This is more text in yet another paragraph</p>
<u></i>this is some cool underlined and italicized text</i></u>
View MyCustomPersistenceHandler.java
@Override
public DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper inspectHelper) throws ServiceException {
try {
PersistencePerspective persistencePerspective = persistencePackage.getPersistencePerspective();
Map<MergedPropertyType, Map<String, FieldMetadata>> allMergedProperties = new HashMap<MergedPropertyType, Map<String, FieldMetadata>>();
//Grab the default properties for the Sku
Map<String, FieldMetadata> properties = inspectHelper.getSimpleMergedProperties(PaymentResponseItem.class.getName(), persistencePerspective);
//Create the metadata for the collection
View MyCustomPersistenceHandler
@Override
public DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper inspectHelper) throws ServiceException {
try {
PersistencePerspective persistencePerspective = persistencePackage.getPersistencePerspective();
Map<MergedPropertyType, Map<String, FieldMetadata>> allMergedProperties = new HashMap<MergedPropertyType, Map<String, FieldMetadata>>();
//Grab the default properties for the Sku
Map<String, FieldMetadata> properties = inspectHelper.getSimpleMergedProperties(PaymentResponseItem.class.getName(), persistencePerspective);
//Create the metadata for the collection
View MyCustomPersistenceHandler
@Override
public DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper inspectHelper) throws ServiceException {
try {
PersistencePerspective persistencePerspective = persistencePackage.getPersistencePerspective();
Map<MergedPropertyType, Map<String, FieldMetadata>> allMergedProperties = new HashMap<MergedPropertyType, Map<String, FieldMetadata>>();
//Grab the default properties for the Sku
Map<String, FieldMetadata> properties = inspectHelper.getSimpleMergedProperties(PaymentResponseItem.class.getName(), persistencePerspective);
//Create the metadata for the collection
View gist:5214678
@Override
public FilterCriterionProvider getBetweenProvider(AssociationPath path) {
if (!path.equals(AssociationPath.ROOT)) {
return super.getBetweenProvider(path);
}
return new SimpleFilterCriterionProvider(FilterDataStrategy.NONE, 2) {