Skip to content

Instantly share code, notes, and snippets.

@hgo
hgo / PhysicalNamingStrategyStandardImpl.java
Created November 29, 2017 14:04
naming strategy for hibernate 5 which mimics old org.hibernate.cfg.ImprovedNamingStrategy
package naming;
import org.hibernate.boot.model.naming.Identifier;
import org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl;
import org.hibernate.engine.jdbc.env.spi.JdbcEnvironment;
import java.io.Serializable;
import java.util.Locale;
public class PhysicalNamingStrategyImpl extends PhysicalNamingStrategyStandardImpl implements Serializable {
email name
guvenozyurt@gmail.com Guven
guven@garajyeri.com Hasim
#!/usr/bin/env node
//this hook installs all your plugins
// add your plugins to this list--either the identifier, the filesystem location or the URL
var pluginlist = [
"org.apache.cordova.splashscreen",
"com.knowledgecode.cordova.websocket",
"com.ionic.keyboard",
"com.phonegap.plugins.PushPlugin",
@hgo
hgo / content.html
Last active May 22, 2018 12:36
ionic on-slide - disable scroll
<ion-content class="has-header" direction="y" overflow-scroll="true">
<div class="list">
<div class="item">
<ion-slide-box on-slide-changed="slideHasChanged($index)" class="h300" show-pager="true">
<ion-slide ng-repeat="p in car.pictures" style="width:auto; !important" y-scroll-disable>
<div class="box">
<div style="height: 300px;
background: url('{{p}}') no-repeat center center;
-webkit-background-size: cover;
-moz-background-size: cover;
CAACeurqokcIBANfx6DcVboTsWHge4QsVLyw1X9ZBvlqhsQQmj3JI8LPACCmADDor5Hfzdsw4b1mRVBpO8vnIyT2KjIofLZCzDrnCAYpuNSHvyRspx5jGv19VGmxiGxyeLUMMZBr5pTWdH7qA9QslxeuRbD3EfZAv8GqaZC2cSrhiHUyyh4nQNkeFXuIwnNE90gFB6I5F66QZDZD
@hgo
hgo / Publisher.java
Created March 23, 2013 08:38
dbuniquecheck example
package models;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import models.check.DBUnique;
import play.data.validation.Required;