Forked from Testing With Jasmine's Pen Jasmine 2.0.0 - Playground - JavaScript version.
A Pen by Toshihiro Nakamura on CodePen.
| @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.
| 'use strict'; | |
| describe('Karma reporter', function () { | |
| var $rootScope; | |
| var $q; | |
| beforeEach(inject(function (_$rootScope_, _$q_) { | |
| $rootScope = _$rootScope_; | |
| $q = _$q_; |
| package boilerplate.entity; | |
| import lombok.Data; | |
| import org.seasar.doma.Entity; | |
| import org.seasar.doma.GeneratedValue; | |
| import org.seasar.doma.GenerationType; | |
| import org.seasar.doma.Id; | |
| import org.seasar.doma.SequenceGenerator; | |
| import org.seasar.doma.Version; |
| using MvcApplication3.Controllers; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web; | |
| using System.Web.Http; | |
| using System.Web.Mvc; | |
| using System.Web.Optimization; | |
| using System.Web.Routing; |