This file contains hidden or 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
| /******************************************************************************* | |
| * Copyright (c) 2010, 2014 Andrea Guarinoni and others. | |
| * All rights reserved. This program and the accompanying materials | |
| * are made available under the terms of the Eclipse Public License v1.0 | |
| * which accompanies this distribution, and is available at | |
| * http://www.eclipse.org/legal/epl-v10.html | |
| * | |
| * Contributors: | |
| * Andrea Guarinoni <[email protected]> - initial API and implementation | |
| * Lars Vogel - initial API and implementation |
This file contains hidden or 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
| javax.validation.constraints.AssertFalse.message = musi by\u0107 fa\u0142szem | |
| javax.validation.constraints.AssertTrue.message = musi by\u0107 prawd\u0105 | |
| javax.validation.constraints.DecimalMax.message = musi by\u0107 mniejsze ${inclusive \=\= true ? 'lub r\u00F3wne od ' \: ''}{value} | |
| javax.validation.constraints.DecimalMin.message = musi by\u0107 wi\u0119ksze ${inclusive \=\= true ? 'lub r\u00F3wne od ' \: ''}{value} | |
| javax.validation.constraints.Digits.message = niepoprawna warto\u015B\u0107 numeryczna (oczekiwano <{integer} digits>.<{fraction} digits>) | |
| javax.validation.constraints.Future.message = musi by\u0107 przysz\u0142\u0105 dat\u0105 | |
| javax.validation.constraints.FutureOrPresent.message = musi by\u0107 aktualn\u0105 lub przysz\u0142\u0105 dat\u0105 | |
| javax.validation.constraints.Max.message = musi by\u0107 mniejsze lub r\u00F3wne od {value} | |
| javax.validation.constraints.Min.message = musi by\u0107 wi\u0119ksze lub r\u00F3wne od {value} | |
| javax.validation.constraints.Negative.message = musi by\u0107 mniejsze |
This file contains hidden or 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
| @Entity | |
| @Inheritance(strategy = InheritanceType.SINGLE_TABLE) | |
| @DiscriminatorColumn(name = Super.DISCRIMINATOR_COLUMN, discriminatorType = DiscriminatorType .STRING, length = 255) | |
| public class Super { | |
| public static final String DISCRIMINATOR_COLUMN = "classname"; | |
| @Id | |
| @GeneratedValue(strategy = GenerationType.AUTO) | |
| protected long id; |
This file contains hidden or 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
| @Entity | |
| @Inheritance(strategy = InheritanceType.JOINED) | |
| @DiscriminatorColumn(name = Super.DISCRIMINATOR_COLUMN, discriminatorType = DiscriminatorType .STRING, length = 255) | |
| public class Super { | |
| public static final String DISCRIMINATOR_COLUMN = "classname"; | |
| @Id | |
| @GeneratedValue(strategy = GenerationType.AUTO) | |
| protected long id; |
This file contains hidden or 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
| @Entity | |
| @Polymorphism(type = PolymorphismType.EXPLICIT) | |
| @Inheritance(strategy = InheritanceType.JOINED) | |
| @DiscriminatorColumn(name = Super.DISCRIMINATOR_COLUMN, discriminatorType = DiscriminatorType .STRING, length = 255) | |
| public class Super { | |
| public static final String DISCRIMINATOR_COLUMN = "classname"; | |
| @Id | |
| @GeneratedValue(strategy = GenerationType.AUTO) |
This file contains hidden or 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
| @Entity | |
| @Inheritance(strategy = InheritanceType.JOINED) | |
| @DiscriminatorColumn(name = Super.DISCRIMINATOR_COLUMN, discriminatorType = DiscriminatorType .STRING, length = 255) | |
| public class Super { | |
| public static final String DISCRIMINATOR_COLUMN = "classname"; | |
| @Id | |
| @GeneratedValue(strategy = GenerationType.AUTO) | |
| protected long id; |
This file contains hidden or 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
| import org.hibernate.Criteria; | |
| import org.hibernate.criterion.Order; | |
| import org.hibernate.criterion.ProjectionList; | |
| import org.hibernate.criterion.Projections; | |
| import org.hibernate.type.StandardBasicTypes; | |
| import org.hibernate.type.Type; | |
| import java.util.List; | |
| public class GenericRepository { |
This file contains hidden or 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
| public enum PostgresDateTrunc { | |
| second, | |
| minute, | |
| hour, | |
| day, | |
| week, | |
| month, | |
| quarter, | |
| year; |
This file contains hidden or 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
| <html> | |
| <body ui-view="main"> | |
| </body> | |
| </html> |
This file contains hidden or 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
| var currentEqualsLevel = 0; | |
| var maxEqualsLevel = 10; | |
| function equals(o1, o2) { | |
| if (currentEqualsLevel>=maxEqualsLevel) | |
| return true; // we consider objects equal to this level | |
| if (o1 === o2) return true; | |
| if (o1 === null || o2 === null) return false; |