Forked from Testing With Jasmine's Pen Jasmine 2.0.0 - Playground - JavaScript version.
A Pen by Toshihiro Nakamura on CodePen.
@Dao | |
public interface EmployeeDao { | |
default List<Employee> selectWithBuilder() { | |
return selectWithBuilder_private(); | |
} | |
private List<Employee> selectWithBuilder_private() { | |
Config config = Config.get(this); | |
SelectBuilder builder = SelectBuilder.newInstance(config); |
package sample; | |
public class AppConfig implements Config { | |
@Override | |
public QueryImplementors getQueryImplementors() { | |
return new QueryImplementors() { | |
@Override | |
public SqlFileSelectQuery createSqlFileSelectQuery(Method method) { | |
if (method.isAnnotationPresent(Unload.class)) { |
@Entity | |
public class Era { | |
@Id | |
public Integer id; | |
public String name; | |
public Interval interval; | |
} |
@Embeddable | |
data class Address(val city: String, val street: String) | |
@Entity(immutable = true) | |
data class Person(@Id val id: Int, val name: String, val address: Address) |
@Embeddable | |
public class Address { | |
private final String city; | |
private final String street; | |
public Address(String city, String street) { | |
this.city = city; | |
this.street = street; | |
} | |
public String getCity() { | |
return city; |
type action = { | |
type: string; | |
}; | |
type reducer = (state: any, action: action) => any; | |
type listener = () => void; | |
type dispatch = (action: action) => action; |
select | |
age, name, birthday | |
from | |
person | |
order by | |
/*%if mode == 1 */ | |
age, name | |
/*%elseif mode == 2 */ | |
/*# "name, age" */ | |
/*%else */ |
function Greeter(message) {"use strict"; | |
this.greeting = message; | |
} | |
Greeter.prototype.greet=function() {"use strict"; | |
return "Hello, " + this.greeting; | |
}; | |
select email from table_a | |
where | |
primaryDomain = /*domain*/'hoge.com' | |
union | |
select email from table_b | |
where | |
/*%if userIds.size() > 0 */ | |
member_id in /*userIds*/('aaa', 'bbb') | |
/*%else */ | |
and |
Forked from Testing With Jasmine's Pen Jasmine 2.0.0 - Playground - JavaScript version.
A Pen by Toshihiro Nakamura on CodePen.