Skip to content

Instantly share code, notes, and snippets.

openapi: "3.0.0"
info:
version: 1.0.0
title: Swagger Petstore
license:
name: MIT
servers:
- url: http://petstore.swagger.io/v1
paths:
/pets:
<beans profile="default">
<bean id="mySessionFactoryBean" class="org.springframework.orm.hibernate5.LocalSessionFactoryBean">
<property name="dataSource" ref="myHSQLDataSourceBean"/>
<property name="mappingLocations" value="classpath*:**/*.hbm.xml"/>
</bean>
</beans>
<beans profile="dev">
<bean id="mySessionFactoryBean" class="org.springframework.orm.hibernate5.LocalSessionFactoryBean">
<property name="dataSource" ref="myHSQLDataSourceBean"/>
<property name="mappingLocations" value="classpath*:**/*.hbm.xml"/>
<property name="hibernateProperties">
<value>
hibernate.hbm2ddl.auto = create-drop
</value>
</property>
</bean>
@onurbaysan
onurbaysan / SimpleCleaner.bat
Created August 25, 2016 21:19
Simple Cleaner
:loop
del "C:\SampleLogs\*.log"
goto loop
@onurbaysan
onurbaysan / GhostBackup
Last active August 29, 2015 14:14
Ghost Backup Script
# BASH script to backup Ghost blog into Dropbox