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
@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()) |
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
class X { | |
@Autowired | |
private X me; | |
@Transactional | |
foo() { | |
} | |
@Transactional |
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
@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); |
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
# 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 | |
# |
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
# /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 |
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
<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> |
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 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 |
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 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 |
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 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 |
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 FilterCriterionProvider getBetweenProvider(AssociationPath path) { | |
if (!path.equals(AssociationPath.ROOT)) { | |
return super.getBetweenProvider(path); | |
} | |
return new SimpleFilterCriterionProvider(FilterDataStrategy.NONE, 2) { |