code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
public Set<Order> getOrders() { return orders; }
Tests sub-select fetching when we have a collection defined with sub-select fetching whose entity-valued element also contains a collection defined with sub-select fetching. Like {@link SimpleMultipleEagerSubSelectFetchTests} and {@link SimpleMultipleLazySubSelectFetchTests}, we are trying to make sure that the BatchF...
getOrders
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
Apache-2.0
public void setOrders(Set<Order> orders) { this.orders = orders; }
Tests sub-select fetching when we have a collection defined with sub-select fetching whose entity-valued element also contains a collection defined with sub-select fetching. Like {@link SimpleMultipleEagerSubSelectFetchTests} and {@link SimpleMultipleLazySubSelectFetchTests}, we are trying to make sure that the BatchF...
setOrders
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
Apache-2.0
public Integer getId() { return id; }
Tests sub-select fetching when we have a collection defined with sub-select fetching whose entity-valued element also contains a collection defined with sub-select fetching. Like {@link SimpleMultipleEagerSubSelectFetchTests} and {@link SimpleMultipleLazySubSelectFetchTests}, we are trying to make sure that the BatchF...
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
Apache-2.0
public Customer getCustomer() { return customer; }
Tests sub-select fetching when we have a collection defined with sub-select fetching whose entity-valued element also contains a collection defined with sub-select fetching. Like {@link SimpleMultipleEagerSubSelectFetchTests} and {@link SimpleMultipleLazySubSelectFetchTests}, we are trying to make sure that the BatchF...
getCustomer
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
Apache-2.0
public void setCustomer(Customer customer) { this.customer = customer; }
Tests sub-select fetching when we have a collection defined with sub-select fetching whose entity-valued element also contains a collection defined with sub-select fetching. Like {@link SimpleMultipleEagerSubSelectFetchTests} and {@link SimpleMultipleLazySubSelectFetchTests}, we are trying to make sure that the BatchF...
setCustomer
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
Apache-2.0
public List<LineItem> getLineItems() { return lineItems; }
Tests sub-select fetching when we have a collection defined with sub-select fetching whose entity-valued element also contains a collection defined with sub-select fetching. Like {@link SimpleMultipleEagerSubSelectFetchTests} and {@link SimpleMultipleLazySubSelectFetchTests}, we are trying to make sure that the BatchF...
getLineItems
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
Apache-2.0
public void setLineItems(List<LineItem> lineItems) { this.lineItems = lineItems; }
Tests sub-select fetching when we have a collection defined with sub-select fetching whose entity-valued element also contains a collection defined with sub-select fetching. Like {@link SimpleMultipleEagerSubSelectFetchTests} and {@link SimpleMultipleLazySubSelectFetchTests}, we are trying to make sure that the BatchF...
setLineItems
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
Apache-2.0
public Integer getId() { return id; }
Tests sub-select fetching when we have a collection defined with sub-select fetching whose entity-valued element also contains a collection defined with sub-select fetching. Like {@link SimpleMultipleEagerSubSelectFetchTests} and {@link SimpleMultipleLazySubSelectFetchTests}, we are trying to make sure that the BatchF...
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
Apache-2.0
public double getUnitCost() { return unitCost; }
Tests sub-select fetching when we have a collection defined with sub-select fetching whose entity-valued element also contains a collection defined with sub-select fetching. Like {@link SimpleMultipleEagerSubSelectFetchTests} and {@link SimpleMultipleLazySubSelectFetchTests}, we are trying to make sure that the BatchF...
getUnitCost
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
Apache-2.0
public void setUnitCost(double unitCost) { this.unitCost = unitCost; }
Tests sub-select fetching when we have a collection defined with sub-select fetching whose entity-valued element also contains a collection defined with sub-select fetching. Like {@link SimpleMultipleEagerSubSelectFetchTests} and {@link SimpleMultipleLazySubSelectFetchTests}, we are trying to make sure that the BatchF...
setUnitCost
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
Apache-2.0
public int getUnits() { return units; }
Tests sub-select fetching when we have a collection defined with sub-select fetching whose entity-valued element also contains a collection defined with sub-select fetching. Like {@link SimpleMultipleEagerSubSelectFetchTests} and {@link SimpleMultipleLazySubSelectFetchTests}, we are trying to make sure that the BatchF...
getUnits
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
Apache-2.0
public void setUnits(int units) { this.units = units; }
Tests sub-select fetching when we have a collection defined with sub-select fetching whose entity-valued element also contains a collection defined with sub-select fetching. Like {@link SimpleMultipleEagerSubSelectFetchTests} and {@link SimpleMultipleLazySubSelectFetchTests}, we are trying to make sure that the BatchF...
setUnits
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
Apache-2.0
public Order getOrder() { return order; }
Tests sub-select fetching when we have a collection defined with sub-select fetching whose entity-valued element also contains a collection defined with sub-select fetching. Like {@link SimpleMultipleEagerSubSelectFetchTests} and {@link SimpleMultipleLazySubSelectFetchTests}, we are trying to make sure that the BatchF...
getOrder
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
Apache-2.0
public void setOrder(Order order) { this.order = order; }
Tests sub-select fetching when we have a collection defined with sub-select fetching whose entity-valued element also contains a collection defined with sub-select fetching. Like {@link SimpleMultipleEagerSubSelectFetchTests} and {@link SimpleMultipleLazySubSelectFetchTests}, we are trying to make sure that the BatchF...
setOrder
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
Apache-2.0
public String getProductSku() { return productSku; }
Tests sub-select fetching when we have a collection defined with sub-select fetching whose entity-valued element also contains a collection defined with sub-select fetching. Like {@link SimpleMultipleEagerSubSelectFetchTests} and {@link SimpleMultipleLazySubSelectFetchTests}, we are trying to make sure that the BatchF...
getProductSku
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
Apache-2.0
public void setProductSku(String productSku) { this.productSku = productSku; }
Tests sub-select fetching when we have a collection defined with sub-select fetching whose entity-valued element also contains a collection defined with sub-select fetching. Like {@link SimpleMultipleEagerSubSelectFetchTests} and {@link SimpleMultipleLazySubSelectFetchTests}, we are trying to make sure that the BatchF...
setProductSku
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SimpleNestedSubSelectFetchTests.java
Apache-2.0
@Test @JiraKey( value = "HHH-10679") public void testSubselectFetchFromEntityBatch(SessionFactoryScope scope) { final EmployeeGroup[] createdGroups = scope.fromTransaction( (s) -> { EmployeeGroup group1 = new EmployeeGroup(); Employee employee1 = new Employee("Jane"); Employee employee2 = new Employee("Jef...
@author Stephen Fikes @author Gail Badner
testSubselectFetchFromEntityBatch
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
Apache-2.0
@Test public void testSubselectFetchFromQueryList(SessionFactoryScope scope) { final Long[] createdIds = scope.fromTransaction( (s) -> { EmployeeGroup group1 = new EmployeeGroup(); Employee employee1 = new Employee("Jane"); Employee employee2 = new Employee("Jeff"); group1.addEmployee(employee1); grou...
@author Stephen Fikes @author Gail Badner
testSubselectFetchFromQueryList
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
Apache-2.0
@Test @JiraKey( value = "HHH-10679") public void testMultiSubselectFetchSamePersisterQueryList(SessionFactoryScope scope) { final Long[] createdIds = scope.fromTransaction( (s) -> { EmployeeGroup group1 = new EmployeeGroup(); Employee employee1 = new Employee("Jane"); Employee employee2 = new Employee("Jef...
@author Stephen Fikes @author Gail Badner
testMultiSubselectFetchSamePersisterQueryList
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
Apache-2.0
public Employee getManager() { return manager; }
@author Stephen Fikes @author Gail Badner
getManager
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
Apache-2.0
public void setManager(Employee manager) { this.manager = manager; }
@author Stephen Fikes @author Gail Badner
setManager
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
Apache-2.0
public Employee getLead() { return lead; }
@author Stephen Fikes @author Gail Badner
getLead
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
Apache-2.0
public void setLead(Employee lead) { this.lead = lead; }
@author Stephen Fikes @author Gail Badner
setLead
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
Apache-2.0
public boolean addEmployee(Employee employee) { return employees.add(employee); }
@author Stephen Fikes @author Gail Badner
addEmployee
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
Apache-2.0
public List<Employee> getEmployees() { return employees; }
@author Stephen Fikes @author Gail Badner
getEmployees
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
Apache-2.0
public long getId() { return id; }
@author Stephen Fikes @author Gail Badner
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
Apache-2.0
@Override public String toString() { return id.toString(); }
@author Stephen Fikes @author Gail Badner
toString
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
Apache-2.0
public String getName() { return name; }
@author Stephen Fikes @author Gail Badner
getName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
Apache-2.0
public boolean addCollaborator(Employee employee) { return collaborators.add(employee); }
@author Stephen Fikes @author Gail Badner
addCollaborator
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
Apache-2.0
public List<Employee> getCollaborators() { return collaborators; }
@author Stephen Fikes @author Gail Badner
getCollaborators
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
Apache-2.0
@Override public String toString() { return name; }
@author Stephen Fikes @author Gail Badner
toString
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchCollectionFromBatchTest.java
Apache-2.0
@BeforeEach void setUp(SessionFactoryScope scope) { scope.inTransaction( session -> { final Customer company1 = new Customer(); company1.setBalance(new BigDecimal(100)); company1.setVip(true); session.persist(company1); final Customer company2 = new Customer(); company2.setBalance(new BigDecimal(1...
@author Yanming Zhou @author Nathan Xu
setUp
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
Apache-2.0
@Test @JiraKey(value = "HHH-12280") void testFormulaWithAlias(SessionFactoryScope scope) { scope.inTransaction( session -> { final List<Customer> customers = session.createQuery( "select c from Customer c ", Customer.class ).getResultList(); assertEquals(2, customers.size()); assertEquals(1d, customers.ge...
@author Yanming Zhou @author Nathan Xu
testFormulaWithAlias
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
Apache-2.0
@AfterEach void tearDown(SessionFactoryScope scope) { scope.inTransaction( session -> session.createQuery( "delete from Customer" ).executeUpdate() ); }
@author Yanming Zhou @author Nathan Xu
tearDown
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
Apache-2.0
public Long getId() { return id; }
@author Yanming Zhou @author Nathan Xu
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
Apache-2.0
public void setId(Long id) { this.id = id; }
@author Yanming Zhou @author Nathan Xu
setId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
Apache-2.0
public BigDecimal getBalance() { return balance; }
@author Yanming Zhou @author Nathan Xu
getBalance
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
Apache-2.0
public void setBalance(BigDecimal balance) { this.balance = balance; }
@author Yanming Zhou @author Nathan Xu
setBalance
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
Apache-2.0
public BigDecimal getPercentage() { return percentage; }
@author Yanming Zhou @author Nathan Xu
getPercentage
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
Apache-2.0
public void setPercentage(BigDecimal percentage) { this.percentage = percentage; }
@author Yanming Zhou @author Nathan Xu
setPercentage
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
Apache-2.0
public boolean isVip() { return vip; }
@author Yanming Zhou @author Nathan Xu
isVip
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
Apache-2.0
public void setVip(boolean vip) { this.vip = vip; }
@author Yanming Zhou @author Nathan Xu
setVip
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithAliasTest.java
Apache-2.0
@BeforeEach void setUp(SessionFactoryScope scope) { scope.inTransaction( session -> { final DisplayItem displayItem20_1 = new DisplayItem(); displayItem20_1.setId( 1 ); displayItem20_1.setDiscountCode( "20" ); displayItem20_1.setDiscountValue( 12.34d ); final DisplayItem displayItem20_2 = new Display...
@author Vlad Mihalcea @author Nathan Xu
setUp
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
Apache-2.0
@Test @JiraKey( value = "HHH-10754" ) void testFormulaAnnotationWithPartitionBy(SessionFactoryScope scope) { scope.inTransaction( session -> { final List<DisplayItem> displayItems = session.createQuery( "select di from DisplayItem di order by di.id", DisplayItem.class).getResultList(); assertNotNull( display...
@author Vlad Mihalcea @author Nathan Xu
testFormulaAnnotationWithPartitionBy
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
Apache-2.0
@AfterEach void tearDown(SessionFactoryScope scope) { scope.inTransaction( session -> session.createQuery( "delete from DisplayItem" ).executeUpdate() ); }
@author Vlad Mihalcea @author Nathan Xu
tearDown
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
Apache-2.0
public Integer getId() { return id; }
@author Vlad Mihalcea @author Nathan Xu
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
Apache-2.0
public void setId(Integer id) { this.id = id; }
@author Vlad Mihalcea @author Nathan Xu
setId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
Apache-2.0
public String getDiscountCode() { return discountCode; }
@author Vlad Mihalcea @author Nathan Xu
getDiscountCode
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
Apache-2.0
public void setDiscountCode(String discountCode) { this.discountCode = discountCode; }
@author Vlad Mihalcea @author Nathan Xu
setDiscountCode
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
Apache-2.0
public Integer getItemsByCode() { return itemsByCode; }
@author Vlad Mihalcea @author Nathan Xu
getItemsByCode
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
Apache-2.0
public void setItemsByCode(Integer itemsByCode) { this.itemsByCode = itemsByCode; }
@author Vlad Mihalcea @author Nathan Xu
setItemsByCode
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
Apache-2.0
public Double getDiscountValue() { return discountValue; }
@author Vlad Mihalcea @author Nathan Xu
getDiscountValue
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
Apache-2.0
public void setDiscountValue(Double discountValue) { this.discountValue = discountValue; }
@author Vlad Mihalcea @author Nathan Xu
setDiscountValue
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaWithPartitionByTest.java
Apache-2.0
@Override protected String getBaseForMappings() { return "org/hibernate/orm/test/"; }
Implementation of AbstractGeneratedPropertyTest. @author Steve Ebersole
getBaseForMappings
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/AbstractGeneratedPropertyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/AbstractGeneratedPropertyTest.java
Apache-2.0
@Test @JiraKey( value = "HHH-2627" ) public final void testGeneratedProperty() { // The following block is repeated 300 times to reproduce HHH-2627. // Without the fix, Oracle will run out of cursors using 10g with // a default installation (ORA-01000: maximum open cursors exceeded). // The number of loops ma...
Implementation of AbstractGeneratedPropertyTest. @author Steve Ebersole
testGeneratedProperty
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/AbstractGeneratedPropertyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/AbstractGeneratedPropertyTest.java
Apache-2.0
@Test public void testLoading(SessionFactoryScope scope) { // some of the generated-value tests show problems loading entities with attributes of // java.sql.Date type. Make sure we can load such an entity without generation involved final NonAuditedEntity saved = scope.fromTransaction( (session) -> { final ...
Baseline testing of typically generated value types - mainly temporal types @author Steve Ebersole
testLoading
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/ComplexValueGenerationBaselineTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/ComplexValueGenerationBaselineTests.java
Apache-2.0
@AfterEach public void dropTestData(SessionFactoryScope scope) { scope.inTransaction( (session) -> session.createQuery( "delete NonAuditedEntity" ).executeUpdate() ); }
Baseline testing of typically generated value types - mainly temporal types @author Steve Ebersole
dropTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/ComplexValueGenerationBaselineTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/ComplexValueGenerationBaselineTests.java
Apache-2.0
@BeforeEach public void setup(SessionFactoryScope scope) { clock = CurrentTimestampGeneration.getClock( scope.getSessionFactory() ); clock.reset(); }
Test for the generation of column values using different value generation strategies. @author Steve Ebersole @author Gunnar Morling
setup
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/DefaultGeneratedValueTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/DefaultGeneratedValueTest.java
Apache-2.0
@Test @JiraKey( "HHH-2907" ) public void testGeneration(SessionFactoryScope scope) { final TheEntity created = scope.fromTransaction( (s) -> { final TheEntity theEntity = new TheEntity( 1 ); assertNull( theEntity.createdDate ); assertNull( theEntity.alwaysDate ); assertNull( theEntity.vmCreatedDate ); ...
Test for the generation of column values using different value generation strategies. @author Steve Ebersole @author Gunnar Morling
testGeneration
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/DefaultGeneratedValueTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/DefaultGeneratedValueTest.java
Apache-2.0
@Test @JiraKey("HHH-2907") public void testUpdateTimestampGeneration(SessionFactoryScope scope) { final TheEntity created = scope.fromTransaction( (s) -> { TheEntity theEntity = new TheEntity( 1 ); assertNull( theEntity.updated ); s.persist( theEntity ); assertNull( theEntity.updated ); return theEn...
Test for the generation of column values using different value generation strategies. @author Steve Ebersole @author Gunnar Morling
testUpdateTimestampGeneration
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/DefaultGeneratedValueTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/DefaultGeneratedValueTest.java
Apache-2.0
@AfterEach public void dropTestData(SessionFactoryScope scope) { scope.inTransaction( (s) -> s.createQuery( "delete TheEntity" ).executeUpdate() ); }
Test for the generation of column values using different value generation strategies. @author Steve Ebersole @author Gunnar Morling
dropTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/DefaultGeneratedValueTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/DefaultGeneratedValueTest.java
Apache-2.0
public Long getId() { return id; }
Implementation of GeneratedPropertyEntity. @author Steve Ebersole
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/GeneratedPropertyEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/GeneratedPropertyEntity.java
Apache-2.0
public void setId(Long id) { this.id = id; }
Implementation of GeneratedPropertyEntity. @author Steve Ebersole
setId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/GeneratedPropertyEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/GeneratedPropertyEntity.java
Apache-2.0
public String getName() { return name; }
Implementation of GeneratedPropertyEntity. @author Steve Ebersole
getName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/GeneratedPropertyEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/GeneratedPropertyEntity.java
Apache-2.0
public void setName(String name) { this.name = name; }
Implementation of GeneratedPropertyEntity. @author Steve Ebersole
setName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/GeneratedPropertyEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/GeneratedPropertyEntity.java
Apache-2.0
public byte[] getLastModified() { return lastModified; }
Implementation of GeneratedPropertyEntity. @author Steve Ebersole
getLastModified
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/GeneratedPropertyEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/GeneratedPropertyEntity.java
Apache-2.0
public void setLastModified(byte[] lastModified) { this.lastModified = lastModified; }
Implementation of GeneratedPropertyEntity. @author Steve Ebersole
setLastModified
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/GeneratedPropertyEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/GeneratedPropertyEntity.java
Apache-2.0
@Test public void testGenerations(SessionFactoryScope scope) { scope.inSession( (session) -> { // first creation final AuditedEntity saved = scope.fromTransaction( session, (s) -> { final AuditedEntity entity = new AuditedEntity( 1, "it" ); session.persist( entity ); return entity; } ); asse...
Tests for using {@link CreationTimestamp} and {@link UpdateTimestamp} annotations with Timestamp-valued attributes @author Steve Ebersole
testGenerations
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InDbGenerationsWithAnnotationsTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InDbGenerationsWithAnnotationsTests.java
Apache-2.0
@AfterEach public void dropTestData(SessionFactoryScope scope) { scope.inTransaction( (session) -> session.createQuery( "delete AuditedEntity" ).executeUpdate() ); }
Tests for using {@link CreationTimestamp} and {@link UpdateTimestamp} annotations with Timestamp-valued attributes @author Steve Ebersole
dropTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InDbGenerationsWithAnnotationsTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InDbGenerationsWithAnnotationsTests.java
Apache-2.0
private static void waitALittle() { try { Thread.sleep( 10 ); } catch (InterruptedException e) { throw new HibernateError( "Unexpected wakeup from test sleep" ); } }
Tests for using {@link CreationTimestamp} and {@link UpdateTimestamp} annotations with Timestamp-valued attributes @author Steve Ebersole
waitALittle
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InDbGenerationsWithAnnotationsTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InDbGenerationsWithAnnotationsTests.java
Apache-2.0
@BeforeEach public void setup(SessionFactoryScope scope) { clock = CurrentTimestampGeneration.getClock( scope.getSessionFactory() ); clock.reset(); }
Tests for using {@link CreationTimestamp} and {@link UpdateTimestamp} annotations with Timestamp-valued attributes @author Steve Ebersole
setup
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithAnnotationsTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithAnnotationsTests.java
Apache-2.0
@Test public void testGenerations(SessionFactoryScope scope) { scope.inSession( (session) -> { // first creation final AuditedEntity saved = scope.fromTransaction( session, s -> { final AuditedEntity entity = new AuditedEntity( 1, "it" ); s.persist( entity ); return entity; } ); assertThat( ...
Tests for using {@link CreationTimestamp} and {@link UpdateTimestamp} annotations with Timestamp-valued attributes @author Steve Ebersole
testGenerations
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithAnnotationsTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithAnnotationsTests.java
Apache-2.0
@AfterEach public void dropTestData(SessionFactoryScope scope) { scope.inTransaction( (session) -> session.createQuery( "delete AuditedEntity" ).executeUpdate() ); }
Tests for using {@link CreationTimestamp} and {@link UpdateTimestamp} annotations with Timestamp-valued attributes @author Steve Ebersole
dropTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithAnnotationsTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithAnnotationsTests.java
Apache-2.0
@BeforeEach public void setup(SessionFactoryScope scope) { clock = CurrentTimestampGeneration.getClock( scope.getSessionFactory() ); clock.reset(); }
Tests for using {@link CreationTimestamp} and {@link UpdateTimestamp} annotations with Timestamp-valued attributes @author Steve Ebersole
setup
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithAnnotationsWithMixedSqlTypesTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithAnnotationsWithMixedSqlTypesTests.java
Apache-2.0
@Test public void testGenerations(SessionFactoryScope scope) { scope.inSession( (session) -> { // first creation final AuditedEntity saved = scope.fromTransaction( session, s -> { final AuditedEntity entity = new AuditedEntity( 1, "it" ); s.persist( entity ); return entity; } ); assertThat( ...
Tests for using {@link CreationTimestamp} and {@link UpdateTimestamp} annotations with Timestamp-valued attributes @author Steve Ebersole
testGenerations
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithAnnotationsWithMixedSqlTypesTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithAnnotationsWithMixedSqlTypesTests.java
Apache-2.0
@AfterEach public void dropTestData(SessionFactoryScope scope) { scope.inTransaction( (session) -> session.createQuery( "delete AuditedEntity" ).executeUpdate() ); }
Tests for using {@link CreationTimestamp} and {@link UpdateTimestamp} annotations with Timestamp-valued attributes @author Steve Ebersole
dropTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithAnnotationsWithMixedSqlTypesTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithAnnotationsWithMixedSqlTypesTests.java
Apache-2.0
@BeforeEach public void setup(SessionFactoryScope scope) { clock = CurrentTimestampGeneration.getClock( scope.getSessionFactory() ); clock.reset(); }
Tests for using {@link CreationTimestamp} and {@link UpdateTimestamp} annotations with Timestamp-valued attributes @author Steve Ebersole
setup
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithAnnotationsWithSqlDateTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithAnnotationsWithSqlDateTests.java
Apache-2.0
@Test public void testGenerations(SessionFactoryScope scope) { scope.inSession( (session) -> { // first creation final AuditedEntity saved = scope.fromTransaction( session, s -> { final AuditedEntity entity = new AuditedEntity( 1, "it" ); s.persist( entity ); return entity; } ); assertThat( ...
Tests for using {@link CreationTimestamp} and {@link UpdateTimestamp} annotations with Timestamp-valued attributes @author Steve Ebersole
testGenerations
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithAnnotationsWithSqlDateTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithAnnotationsWithSqlDateTests.java
Apache-2.0
@AfterEach public void dropTestData(SessionFactoryScope scope) { scope.inTransaction( (session) -> session.createQuery( "delete AuditedEntity" ).executeUpdate() ); }
Tests for using {@link CreationTimestamp} and {@link UpdateTimestamp} annotations with Timestamp-valued attributes @author Steve Ebersole
dropTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithAnnotationsWithSqlDateTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithAnnotationsWithSqlDateTests.java
Apache-2.0
@BeforeEach public void setup(SessionFactoryScope scope) { clock = CurrentTimestampGeneration.getClock( scope.getSessionFactory() ); clock.reset(); }
Tests for using {@link CreationTimestamp} and {@link UpdateTimestamp} annotations with Timestamp-valued attributes @author Steve Ebersole
setup
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithMultipleAnnotationsTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithMultipleAnnotationsTests.java
Apache-2.0
@Test public void testGenerations(SessionFactoryScope scope) { scope.inSession( (session) -> { // first creation final AuditedEntity saved = scope.fromTransaction( session, s -> { final AuditedEntity entity = new AuditedEntity( 1, "it" ); s.persist( entity ); return entity; } ); assertThat( ...
Tests for using {@link CreationTimestamp} and {@link UpdateTimestamp} annotations with Timestamp-valued attributes @author Steve Ebersole
testGenerations
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithMultipleAnnotationsTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithMultipleAnnotationsTests.java
Apache-2.0
@AfterEach public void dropTestData(SessionFactoryScope scope) { scope.inTransaction( (session) -> session.createQuery( "delete AuditedEntity" ).executeUpdate() ); }
Tests for using {@link CreationTimestamp} and {@link UpdateTimestamp} annotations with Timestamp-valued attributes @author Steve Ebersole
dropTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithMultipleAnnotationsTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InVmGenerationsWithMultipleAnnotationsTests.java
Apache-2.0
public final String[] getMappings() { return new String[] { "mapping/generated/GeneratedPropertyEntity.hbm.xml" }; }
Implementation of TriggerGeneratedValuesWithoutCachingTest. @author Steve Ebersole
getMappings
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/TriggerGeneratedValuesWithCachingTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/TriggerGeneratedValuesWithCachingTest.java
Apache-2.0
@Test public void testInsertGeneratedIdentityOnly(SessionFactoryScope scope) { final GeneratedValuesMutationDelegate delegate = getDelegate( scope, IdentityOnly.class, MutationType.INSERT ); final SQLStatementInspector inspector = scope.getCollectingStatementInspector(); inspector.clear(); scope.inTransaction...
Tests {@link GeneratedValuesMutationDelegate efficient generated values retrieval} when {@link GenerationType#IDENTITY identity} generated identifiers are involved. @author Marco Belladelli
testInsertGeneratedIdentityOnly
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
Apache-2.0
@Test public void testInsertGeneratedValuesAndIdentity(SessionFactoryScope scope) { final GeneratedValuesMutationDelegate delegate = getDelegate( scope, IdentityAndValues.class, MutationType.INSERT ); final SQLStatementInspector inspector = scope.getCollectingStatementInspector(); inspector.clear()...
Tests {@link GeneratedValuesMutationDelegate efficient generated values retrieval} when {@link GenerationType#IDENTITY identity} generated identifiers are involved. @author Marco Belladelli
testInsertGeneratedValuesAndIdentity
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
Apache-2.0
@Test public void testUpdateGeneratedValuesAndIdentity(SessionFactoryScope scope) { final GeneratedValuesMutationDelegate delegate = getDelegate( scope, IdentityAndValues.class, MutationType.UPDATE ); final SQLStatementInspector inspector = scope.getCollectingStatementInspector(); final Long id = s...
Tests {@link GeneratedValuesMutationDelegate efficient generated values retrieval} when {@link GenerationType#IDENTITY identity} generated identifiers are involved. @author Marco Belladelli
testUpdateGeneratedValuesAndIdentity
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
Apache-2.0
@Test public void testInsertGeneratedValuesAndIdentityAndRowId(SessionFactoryScope scope) { final GeneratedValuesMutationDelegate delegate = getDelegate( scope, IdentityAndValuesAndRowId.class, MutationType.INSERT ); final SQLStatementInspector inspector = scope.getCollectingStatementInspector(); i...
Tests {@link GeneratedValuesMutationDelegate efficient generated values retrieval} when {@link GenerationType#IDENTITY identity} generated identifiers are involved. @author Marco Belladelli
testInsertGeneratedValuesAndIdentityAndRowId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
Apache-2.0
@Test public void testInsertGeneratedValuesAndIdentityAndRowIdAndNaturalId(SessionFactoryScope scope) { final GeneratedValuesMutationDelegate delegate = getDelegate( scope, IdentityAndValuesAndRowIdAndNaturalId.class, MutationType.INSERT ); final SQLStatementInspector inspector = scope.getCollectingS...
Tests {@link GeneratedValuesMutationDelegate efficient generated values retrieval} when {@link GenerationType#IDENTITY identity} generated identifiers are involved. @author Marco Belladelli
testInsertGeneratedValuesAndIdentityAndRowIdAndNaturalId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
Apache-2.0
private static GeneratedValuesMutationDelegate getDelegate( SessionFactoryScope scope, Class<?> entityClass, MutationType mutationType) { final EntityPersister entityDescriptor = scope.getSessionFactory() .getMappingMetamodel() .findEntityDescriptor( entityClass ); return entityDescriptor.getMutati...
Tests {@link GeneratedValuesMutationDelegate efficient generated values retrieval} when {@link GenerationType#IDENTITY identity} generated identifiers are involved. @author Marco Belladelli
getDelegate
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
Apache-2.0
@BeforeAll public void setUp(SessionFactoryScope scope) { triggerable = logger.watchForLogMessages( "SQL Error:" ); triggerable.reset(); }
Tests {@link GeneratedValuesMutationDelegate efficient generated values retrieval} when {@link GenerationType#IDENTITY identity} generated identifiers are involved. @author Marco Belladelli
setUp
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
Apache-2.0
public Long getId() { return id; }
Tests {@link GeneratedValuesMutationDelegate efficient generated values retrieval} when {@link GenerationType#IDENTITY identity} generated identifiers are involved. @author Marco Belladelli
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
Apache-2.0
public String getName() { return name; }
Tests {@link GeneratedValuesMutationDelegate efficient generated values retrieval} when {@link GenerationType#IDENTITY identity} generated identifiers are involved. @author Marco Belladelli
getName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
Apache-2.0
public Long getId() { return id; }
Tests {@link GeneratedValuesMutationDelegate efficient generated values retrieval} when {@link GenerationType#IDENTITY identity} generated identifiers are involved. @author Marco Belladelli
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
Apache-2.0
public String getName() { return name; }
Tests {@link GeneratedValuesMutationDelegate efficient generated values retrieval} when {@link GenerationType#IDENTITY identity} generated identifiers are involved. @author Marco Belladelli
getName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
Apache-2.0
public Date getUpdateDate() { return updateDate; }
Tests {@link GeneratedValuesMutationDelegate efficient generated values retrieval} when {@link GenerationType#IDENTITY identity} generated identifiers are involved. @author Marco Belladelli
getUpdateDate
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
Apache-2.0
public void setData(String data) { this.data = data; }
Tests {@link GeneratedValuesMutationDelegate efficient generated values retrieval} when {@link GenerationType#IDENTITY identity} generated identifiers are involved. @author Marco Belladelli
setData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
Apache-2.0
public Long getId() { return id; }
Tests {@link GeneratedValuesMutationDelegate efficient generated values retrieval} when {@link GenerationType#IDENTITY identity} generated identifiers are involved. @author Marco Belladelli
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
Apache-2.0
public String getName() { return name; }
Tests {@link GeneratedValuesMutationDelegate efficient generated values retrieval} when {@link GenerationType#IDENTITY identity} generated identifiers are involved. @author Marco Belladelli
getName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
Apache-2.0
public Date getUpdateDate() { return updateDate; }
Tests {@link GeneratedValuesMutationDelegate efficient generated values retrieval} when {@link GenerationType#IDENTITY identity} generated identifiers are involved. @author Marco Belladelli
getUpdateDate
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
Apache-2.0
public void setData(String data) { this.data = data; }
Tests {@link GeneratedValuesMutationDelegate efficient generated values retrieval} when {@link GenerationType#IDENTITY identity} generated identifiers are involved. @author Marco Belladelli
setData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/delegate/MutationDelegateIdentityTest.java
Apache-2.0