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 static String getProcessedSql() { return processedSql; }
Since the query hint is added to the SQL during Loader's executeQueryStatement -> preprocessSQL, rather than early on during the QueryTranslator or QueryLoader initialization, there's not an easy way to check the full SQL after completely processing it. Instead, use this ridiculous hack to ensure Loader actually calls ...
getProcessedSql
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/queryhint/QueryHintSQLServer2012Test.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/queryhint/QueryHintSQLServer2012Test.java
Apache-2.0
public static void resetProcessedSql() { processedSql = ""; }
Since the query hint is added to the SQL during Loader's executeQueryStatement -> preprocessSQL, rather than early on during the QueryTranslator or QueryLoader initialization, there's not an easy way to check the full SQL after completely processing it. Instead, use this ridiculous hack to ensure Loader actually calls ...
resetProcessedSql
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/queryhint/QueryHintSQLServer2012Test.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/queryhint/QueryHintSQLServer2012Test.java
Apache-2.0
@Test @JiraKey(value = "HHH-7890") public void testQuotedUniqueConstraint(SessionFactoryScope scope) { Iterator<UniqueKey> itr = scope.getMetadataImplementor().getEntityBinding(Person.class.getName()) .getTable().getUniqueKeys().values().iterator(); while ( itr.hasNext() ) { UniqueKey uk = itr.next(); a...
@author Emmanuel Bernard @author Brett Meyer
testQuotedUniqueConstraint
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/quote/QuoteGlobalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/quote/QuoteGlobalTest.java
Apache-2.0
@Test public void testQuoteManytoMany(SessionFactoryScope scope) { scope.inSession( session -> { try { Transaction tx = session.beginTransaction(); User u = new User(); session.persist( u ); Role r = new Role(); session.persist( r ); u.getRoles().add( r ); session.f...
@author Emmanuel Bernard @author Brett Meyer
testQuoteManytoMany
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/quote/QuoteGlobalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/quote/QuoteGlobalTest.java
Apache-2.0
@Test @JiraKey(value = "HHH-8520") public void testHbmQuoting(SessionFactoryScope scope) { final MetadataImplementor metadataImplementor = scope.getMetadataImplementor(); doTestHbmQuoting( DataPoint.class, metadataImplementor ); doTestHbmQuoting( AssociatedDataPoint.class, metadataImplementor ); }
@author Emmanuel Bernard @author Brett Meyer
testHbmQuoting
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/quote/QuoteGlobalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/quote/QuoteGlobalTest.java
Apache-2.0
private void doTestHbmQuoting(Class clazz, MetadataImplementor metadataImplementor) { Table table = metadataImplementor.getEntityBinding( clazz.getName() ).getTable(); assertTrue( table.isQuoted() ); Iterator itr = table.getColumns().iterator(); while ( itr.hasNext() ) { Column column = (Column) itr.next(); ...
@author Emmanuel Bernard @author Brett Meyer
doTestHbmQuoting
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/quote/QuoteGlobalTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/quote/QuoteGlobalTest.java
Apache-2.0
@Test public void testQuoteManytoMany() { String role = User.class.getName() + ".roles"; assertEquals( "User_Role", metadata().getCollectionBinding( role ).getCollectionTable().getName() ); Session s = openSession(); s.beginTransaction(); User u = new User(); s.persist( u ); Role r = new Role(); s.per...
@author Emmanuel Bernard @author Brett Meyer
testQuoteManytoMany
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/quote/QuoteTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/quote/QuoteTest.java
Apache-2.0
@Test @JiraKey(value = "HHH-8464") public void testDoubleQuoteJoinColumn() { Session s = openSession(); s.getTransaction().begin(); User user = new User(); House house = new House(); user.setHouse( house ); s.persist( house ); s.persist( user ); s.getTransaction().commit(); s.close(); s = openSes...
@author Emmanuel Bernard @author Brett Meyer
testDoubleQuoteJoinColumn
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/quote/QuoteTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/quote/QuoteTest.java
Apache-2.0
@Test @JiraKey(value = "HHH-2988") public void testUnionSubclassEntityQuoting() { Session s = openSession(); s.beginTransaction(); Container container1 = new Container(); Container container2 = new Container(); SimpleItem simpleItem = new SimpleItem(); container1.items.add( container2 ); container1.ite...
@author Emmanuel Bernard @author Brett Meyer
testUnionSubclassEntityQuoting
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/quote/QuoteTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/quote/QuoteTest.java
Apache-2.0
@Override protected Class[] getAnnotatedClasses() { return new Class[] { User.class, Role.class, Phone.class, House.class, Container.class, SimpleItem.class }; }
@author Emmanuel Bernard @author Brett Meyer
getAnnotatedClasses
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/quote/QuoteTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/quote/QuoteTest.java
Apache-2.0
public Long getId() { return id; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public void setId(Long id) { this.id = id; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
setId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public String getName() { return name; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
getName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public void setName(String name) { this.name = name; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
setName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public Owner getNoProxyOwner() { return noProxyOwner; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
getNoProxyOwner
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public void setNoProxyOwner(Owner noProxyOwner) { this.noProxyOwner = noProxyOwner; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
setNoProxyOwner
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public Owner getProxyOwner() { return proxyOwner; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
getProxyOwner
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public void setProxyOwner(Owner proxyOwner) { this.proxyOwner = proxyOwner; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
setProxyOwner
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public Owner getNonLazyOwner() { return nonLazyOwner; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
getNonLazyOwner
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public void setNonLazyOwner(Owner nonLazyOwner) { this.nonLazyOwner = nonLazyOwner; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
setNonLazyOwner
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public Info getNoProxyInfo() { return noProxyInfo; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
getNoProxyInfo
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public void setNoProxyInfo(Info noProxyInfo) { this.noProxyInfo = noProxyInfo; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
setNoProxyInfo
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public Info getProxyInfo() { return proxyInfo; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
getProxyInfo
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public void setProxyInfo(Info proxyInfo) { this.proxyInfo = proxyInfo; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
setProxyInfo
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public Info getNonLazyInfo() { return nonLazyInfo; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
getNonLazyInfo
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public void setNonLazyInfo(Info nonLazyInfo) { this.nonLazyInfo = nonLazyInfo; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
setNonLazyInfo
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public Set getLazyDataPoints() { return lazyDataPoints; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
getLazyDataPoints
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public void setLazyDataPoints(Set lazyDataPoints) { this.lazyDataPoints = lazyDataPoints; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
setLazyDataPoints
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public Set getNonLazyJoinDataPoints() { return nonLazyJoinDataPoints; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
getNonLazyJoinDataPoints
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public void setNonLazyJoinDataPoints(Set nonLazyJoinDataPoints) { this.nonLazyJoinDataPoints = nonLazyJoinDataPoints; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
setNonLazyJoinDataPoints
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public Set getNonLazySelectDataPoints() { return nonLazySelectDataPoints; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
getNonLazySelectDataPoints
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public void setNonLazySelectDataPoints(Set nonLazySelectDataPoints) { this.nonLazySelectDataPoints = nonLazySelectDataPoints; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
setNonLazySelectDataPoints
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Container.java
Apache-2.0
public void setDescription(String description) { this.description = description; }
@param description The description to set.
setDescription
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/DataPoint.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/DataPoint.java
Apache-2.0
public void setId(long id) { this.id = id; }
@param id The id to set.
setId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/DataPoint.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/DataPoint.java
Apache-2.0
public Long getId() { return id; }
todo: describe Info @author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Info.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Info.java
Apache-2.0
public void setId(Long id) { this.id = id; }
todo: describe Info @author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
setId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Info.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Info.java
Apache-2.0
public String getDetails() { return details; }
todo: describe Info @author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
getDetails
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Info.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Info.java
Apache-2.0
public void setDetails(String details) { this.details = details; }
todo: describe Info @author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
setDetails
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Info.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Info.java
Apache-2.0
public Long getId() { return id; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Owner.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Owner.java
Apache-2.0
public void setId(Long id) { this.id = id; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
setId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Owner.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Owner.java
Apache-2.0
public String getName() { return name; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
getName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Owner.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Owner.java
Apache-2.0
public void setName(String name) { this.name = name; }
@author Steve Ebersole, Gail Badner (adapted this from "proxy" tests version)
setName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Owner.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/Owner.java
Apache-2.0
@Test public void testReadOnlyViaSessionDoesNotInit(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = session.getReference( Da...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyViaSessionDoesNotInit
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyViaLazyInitializerDoesNotInit(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = session.getRefer...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyViaLazyInitializerDoesNotInit
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyViaSessionNoChangeAfterInit(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = session.getReferen...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyViaSessionNoChangeAfterInit
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyViaLazyInitializerNoChangeAfterInit(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = session.ge...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyViaLazyInitializerNoChangeAfterInit
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyViaSessionBeforeInit(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = session.getReference( Dat...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyViaSessionBeforeInit
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testModifiableViaSessionBeforeInit(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = session.getReference( D...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testModifiableViaSessionBeforeInit
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyViaSessionBeforeInitByModifiableQuery(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = session....
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyViaSessionBeforeInitByModifiableQuery
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyViaSessionBeforeInitByReadOnlyQuery(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = session.ge...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyViaSessionBeforeInitByReadOnlyQuery
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testModifiableViaSessionBeforeInitByModifiableQuery(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = sessio...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testModifiableViaSessionBeforeInitByModifiableQuery
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testModifiableViaSessionBeforeInitByReadOnlyQuery(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = session....
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testModifiableViaSessionBeforeInitByReadOnlyQuery
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyViaLazyInitializerBeforeInit(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = session.getRefere...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyViaLazyInitializerBeforeInit
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testModifiableViaLazyInitializerBeforeInit(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = session.getRefe...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testModifiableViaLazyInitializerBeforeInit
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyViaLazyInitializerAfterInit(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = session.getReferen...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyViaLazyInitializerAfterInit
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testModifiableViaLazyInitializerAfterInit(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = session.getRefer...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testModifiableViaLazyInitializerAfterInit
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test @FailureExpected(jiraKey = "HHH-4642") public void testModifyToReadOnlyToModifiableIsUpdated(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testModifyToReadOnlyToModifiableIsUpdated
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test @FailureExpected(jiraKey = "HHH-4642") public void testReadOnlyModifiedToModifiableIsUpdated(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyModifiedToModifiableIsUpdated
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyChangedEvictedMerge(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = session.getReference( Data...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyChangedEvictedMerge
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyToModifiableInitWhenModifiedIsUpdated(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = session....
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyToModifiableInitWhenModifiedIsUpdated
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyInitToModifiableModifiedIsUpdated(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = session.getR...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyInitToModifiableModifiedIsUpdated
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyModifiedMerge(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = session.getReference( DataPoint....
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyModifiedMerge
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyDelete(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); scope.inSession( session -> { session.setCacheMode( CacheMode.IGNORE ); session.beginTransaction(); try { DataPoint dp = session.getReference( DataPoint.class, ...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyDelete
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyRefresh(SessionFactoryScope scope) { Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); Transaction t = s.beginTransaction(); DataPoint dp = new DataPoint(); dp.setDescription( "original" ); dp.setX( new BigDecimal( 0.1d ).setScale( 19, BigDecimal.ROUND_DOWN...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyRefresh
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyRefreshDeleted(SessionFactoryScope scope) { Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); Transaction t = s.beginTransaction(); DataPoint dp = new DataPoint(); dp.setDescription( "original" ); dp.setX( new BigDecimal( 0.1d ).setScale( 19, BigDecimal.ROU...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyRefreshDeleted
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyProxyMergeDetachedProxyWithChange(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); s.beginTransaction(); DataPoint dp = s.getReference( DataPoint.class, dpOrig.getId...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyProxyMergeDetachedProxyWithChange
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyProxyInitMergeDetachedProxyWithChange(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); s.beginTransaction(); DataPoint dp = s.getReference( DataPoint.class, dpOrig.g...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyProxyInitMergeDetachedProxyWithChange
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyProxyMergeDetachedEntityWithChange(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); s.beginTransaction(); DataPoint dp = s.getReference( DataPoint.class, dpOrig.getI...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyProxyMergeDetachedEntityWithChange
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyProxyInitMergeDetachedEntityWithChange(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); s.beginTransaction(); DataPoint dp = s.getReference( DataPoint.class, dpOrig....
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyProxyInitMergeDetachedEntityWithChange
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testReadOnlyEntityMergeDetachedProxyWithChange(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); s.beginTransaction(); DataPoint dp = s.getReference( DataPoint.class, dpOrig.getI...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testReadOnlyEntityMergeDetachedProxyWithChange
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testSetReadOnlyInTwoTransactionsSameSession(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); s.beginTransaction(); DataPoint dp = s.getReference( DataPoint.class, dpOrig.getId(...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testSetReadOnlyInTwoTransactionsSameSession
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testSetReadOnlyBetweenTwoTransactionsSameSession(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); s.beginTransaction(); DataPoint dp = s.getReference( DataPoint.class, dpOrig.g...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testSetReadOnlyBetweenTwoTransactionsSameSession
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testSetModifiableBetweenTwoTransactionsSameSession(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); s.beginTransaction(); DataPoint dp = s.getReference( DataPoint.class, dpOrig...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testSetModifiableBetweenTwoTransactionsSameSession
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testIsReadOnlyAfterSessionClosed(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); s.beginTransaction(); DataPoint dp = s.getReference( DataPoint.class, dpOrig.getId() ); asse...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testIsReadOnlyAfterSessionClosed
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testIsReadOnlyAfterSessionClosedViaLazyInitializer(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); s.beginTransaction(); DataPoint dp = s.getReference( DataPoint.class, dpOrig...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testIsReadOnlyAfterSessionClosedViaLazyInitializer
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testDetachedIsReadOnlyAfterEvictViaSession(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); s.beginTransaction(); DataPoint dp = s.getReference( DataPoint.class, dpOrig.getId()...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testDetachedIsReadOnlyAfterEvictViaSession
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testDetachedIsReadOnlyAfterEvictViaLazyInitializer(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); s.beginTransaction(); DataPoint dp = s.getReference( DataPoint.class, dpOrig...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testDetachedIsReadOnlyAfterEvictViaLazyInitializer
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testSetReadOnlyAfterSessionClosed(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); s.beginTransaction(); DataPoint dp = s.getReference( DataPoint.class, dpOrig.getId() ); ass...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testSetReadOnlyAfterSessionClosed
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testSetReadOnlyAfterSessionClosedViaLazyInitializer(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); s.beginTransaction(); DataPoint dp = s.getReference( DataPoint.class, dpOri...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testSetReadOnlyAfterSessionClosedViaLazyInitializer
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testSetClosedSessionInLazyInitializer(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); s.beginTransaction(); DataPoint dp = s.getReference( DataPoint.class, dpOrig.getId() ); ...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testSetClosedSessionInLazyInitializer
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testDetachedSetReadOnlyAfterEvictViaSession(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); s.beginTransaction(); DataPoint dp = s.getReference( DataPoint.class, dpOrig.getId(...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testDetachedSetReadOnlyAfterEvictViaSession
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test public void testDetachedSetReadOnlyAfterEvictViaLazyInitializer(SessionFactoryScope scope) { DataPoint dpOrig = createDataPoint( CacheMode.IGNORE, scope ); Session s = openSession( scope ); s.setCacheMode( CacheMode.IGNORE ); s.beginTransaction(); DataPoint dp = s.getReference( DataPoint.class, dpOri...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
testDetachedSetReadOnlyAfterEvictViaLazyInitializer
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
private Session openSession(SessionFactoryScope scope) { return scope.getSessionFactory().openSession(); }
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
openSession
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
private DataPoint createDataPoint(CacheMode cacheMode, SessionFactoryScope scope) { Session s = openSession( scope ); s.setCacheMode( cacheMode ); s.beginTransaction(); DataPoint dp = new DataPoint(); dp.setX( new BigDecimal( 0.1d ).setScale( 19, BigDecimal.ROUND_DOWN ) ); dp.setY( new BigDecimal( Math.cos(...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
createDataPoint
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
private void checkReadOnly(Session s, Object proxy, boolean expectedReadOnly) { assertTrue( proxy instanceof HibernateProxy ); LazyInitializer li = ( (HibernateProxy) proxy ).getHibernateLazyInitializer(); assertSame( s, li.getSession() ); assertEquals( expectedReadOnly, s.isReadOnly( proxy ) ); assertEquals(...
Tests making initialized and uninitialized proxies read-only/modifiable @author Gail Badner
checkReadOnly
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlyProxyTest.java
Apache-2.0
@Test @SuppressWarnings( {"unchecked"}) public void testExistingModifiableAfterSetSessionReadOnly(SessionFactoryScope scope) { Container cOrig = createContainer(); Set expectedInitializedObjects = new HashSet( Arrays.asList( cOrig, cOrig.getNoProxyInfo(), cOrig.getProxyInfo(), cOrig.ge...
Model: Container |-- N : 1 -- noProxyOwner (property-ref="name" lazy="no-proxy" cascade="all") |-- N : 1 -- proxyOwner (property-ref="name" lazy="proxy" cascade="all") |-- N : 1 -- nonLazyOwner (property-ref="name" lazy="false" cascade="all") |-- N : 1 -- noProxyInfo" (lazy="no-proxy" cascade="all") |-- N : 1 -- proxy...
testExistingModifiableAfterSetSessionReadOnly
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
Apache-2.0
@Test @SuppressWarnings( {"unchecked"}) public void testExistingReadOnlyAfterSetSessionModifiable(SessionFactoryScope scope) { Container cOrig = createContainer(); Set expectedInitializedObjects = new HashSet( Arrays.asList( cOrig, cOrig.getNoProxyInfo(), cOrig.getProxyInfo(), cOrig.g...
Model: Container |-- N : 1 -- noProxyOwner (property-ref="name" lazy="no-proxy" cascade="all") |-- N : 1 -- proxyOwner (property-ref="name" lazy="proxy" cascade="all") |-- N : 1 -- nonLazyOwner (property-ref="name" lazy="false" cascade="all") |-- N : 1 -- noProxyInfo" (lazy="no-proxy" cascade="all") |-- N : 1 -- proxy...
testExistingReadOnlyAfterSetSessionModifiable
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
Apache-2.0
@Test @SuppressWarnings( {"unchecked"}) public void testExistingReadOnlyAfterSetSessionModifiableExisting(SessionFactoryScope scope) { Container cOrig = createContainer(); Set expectedInitializedObjects = new HashSet( Arrays.asList( cOrig, cOrig.getNoProxyInfo(), cOrig.getProxyInfo(), ...
Model: Container |-- N : 1 -- noProxyOwner (property-ref="name" lazy="no-proxy" cascade="all") |-- N : 1 -- proxyOwner (property-ref="name" lazy="proxy" cascade="all") |-- N : 1 -- nonLazyOwner (property-ref="name" lazy="false" cascade="all") |-- N : 1 -- noProxyInfo" (lazy="no-proxy" cascade="all") |-- N : 1 -- proxy...
testExistingReadOnlyAfterSetSessionModifiableExisting
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
Apache-2.0
@SuppressWarnings( {"unchecked"}) @Test public void testExistingReadOnlyAfterSetSessionModifiableExistingEntityReadOnly(SessionFactoryScope scope) { Container cOrig = createContainer(); Set expectedInitializedObjects = new HashSet( Arrays.asList( cOrig, cOrig.getNoProxyInfo(), cOrig.getProxy...
Model: Container |-- N : 1 -- noProxyOwner (property-ref="name" lazy="no-proxy" cascade="all") |-- N : 1 -- proxyOwner (property-ref="name" lazy="proxy" cascade="all") |-- N : 1 -- nonLazyOwner (property-ref="name" lazy="false" cascade="all") |-- N : 1 -- noProxyInfo" (lazy="no-proxy" cascade="all") |-- N : 1 -- proxy...
testExistingReadOnlyAfterSetSessionModifiableExistingEntityReadOnly
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
Apache-2.0
@SuppressWarnings( {"unchecked"}) @Test public void testExistingReadOnlyAfterSetSessionModifiableProxyExisting(SessionFactoryScope scope) { Container cOrig = createContainer(); Set expectedInitializedObjects = new HashSet( Arrays.asList( cOrig, cOrig.getNoProxyInfo(), cOrig.getProxyInfo(), ...
Model: Container |-- N : 1 -- noProxyOwner (property-ref="name" lazy="no-proxy" cascade="all") |-- N : 1 -- proxyOwner (property-ref="name" lazy="proxy" cascade="all") |-- N : 1 -- nonLazyOwner (property-ref="name" lazy="false" cascade="all") |-- N : 1 -- noProxyInfo" (lazy="no-proxy" cascade="all") |-- N : 1 -- proxy...
testExistingReadOnlyAfterSetSessionModifiableProxyExisting
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
Apache-2.0
@SuppressWarnings( {"unchecked"}) @Test public void testExistingReadOnlyAfterSetSessionModifiableExistingProxyReadOnly(SessionFactoryScope scope) { Container cOrig = createContainer(); Set expectedInitializedObjects = new HashSet( Arrays.asList( cOrig, cOrig.getNoProxyInfo(), cOrig.getProxyI...
Model: Container |-- N : 1 -- noProxyOwner (property-ref="name" lazy="no-proxy" cascade="all") |-- N : 1 -- proxyOwner (property-ref="name" lazy="proxy" cascade="all") |-- N : 1 -- nonLazyOwner (property-ref="name" lazy="false" cascade="all") |-- N : 1 -- noProxyInfo" (lazy="no-proxy" cascade="all") |-- N : 1 -- proxy...
testExistingReadOnlyAfterSetSessionModifiableExistingProxyReadOnly
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
Apache-2.0
@SuppressWarnings( {"unchecked"}) @Test public void testDefaultModifiableWithReadOnlyQueryForEntity(SessionFactoryScope scope) { Container cOrig = createContainer(); Set expectedInitializedObjects = new HashSet( Arrays.asList( cOrig, cOrig.getNoProxyInfo(), cOrig.getProxyInfo(), cOrig....
Model: Container |-- N : 1 -- noProxyOwner (property-ref="name" lazy="no-proxy" cascade="all") |-- N : 1 -- proxyOwner (property-ref="name" lazy="proxy" cascade="all") |-- N : 1 -- nonLazyOwner (property-ref="name" lazy="false" cascade="all") |-- N : 1 -- noProxyInfo" (lazy="no-proxy" cascade="all") |-- N : 1 -- proxy...
testDefaultModifiableWithReadOnlyQueryForEntity
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
Apache-2.0
@SuppressWarnings( {"unchecked"}) @Test public void testDefaultReadOnlyWithModifiableQueryForEntity(SessionFactoryScope scope) { Container cOrig = createContainer(); Set expectedInitializedObjects = new HashSet( Arrays.asList( cOrig, cOrig.getNoProxyInfo(), cOrig.getProxyInfo(), cOrig....
Model: Container |-- N : 1 -- noProxyOwner (property-ref="name" lazy="no-proxy" cascade="all") |-- N : 1 -- proxyOwner (property-ref="name" lazy="proxy" cascade="all") |-- N : 1 -- nonLazyOwner (property-ref="name" lazy="false" cascade="all") |-- N : 1 -- noProxyInfo" (lazy="no-proxy" cascade="all") |-- N : 1 -- proxy...
testDefaultReadOnlyWithModifiableQueryForEntity
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
Apache-2.0
@SuppressWarnings( {"unchecked"}) @Test public void testDefaultReadOnlyWithQueryForEntity(SessionFactoryScope scope) { Container cOrig = createContainer(); Set expectedInitializedObjects = new HashSet( Arrays.asList( cOrig, cOrig.getNoProxyInfo(), cOrig.getProxyInfo(), cOrig.getNonLazy...
Model: Container |-- N : 1 -- noProxyOwner (property-ref="name" lazy="no-proxy" cascade="all") |-- N : 1 -- proxyOwner (property-ref="name" lazy="proxy" cascade="all") |-- N : 1 -- nonLazyOwner (property-ref="name" lazy="false" cascade="all") |-- N : 1 -- noProxyInfo" (lazy="no-proxy" cascade="all") |-- N : 1 -- proxy...
testDefaultReadOnlyWithQueryForEntity
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
Apache-2.0
@SuppressWarnings( {"unchecked"}) @Test public void testDefaultModifiableWithQueryForEntity(SessionFactoryScope scope) { Container cOrig = createContainer(); Set expectedInitializedObjects = new HashSet( Arrays.asList( cOrig, cOrig.getNoProxyInfo(), cOrig.getProxyInfo(), cOrig.getNonLa...
Model: Container |-- N : 1 -- noProxyOwner (property-ref="name" lazy="no-proxy" cascade="all") |-- N : 1 -- proxyOwner (property-ref="name" lazy="proxy" cascade="all") |-- N : 1 -- nonLazyOwner (property-ref="name" lazy="false" cascade="all") |-- N : 1 -- noProxyInfo" (lazy="no-proxy" cascade="all") |-- N : 1 -- proxy...
testDefaultModifiableWithQueryForEntity
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
Apache-2.0
@SuppressWarnings( {"unchecked"}) @Test public void testDefaultModifiableWithReadOnlyQueryForCollectionEntities(SessionFactoryScope scope) { Container cOrig = createContainer(); Set expectedInitializedObjects = new HashSet( Arrays.asList( cOrig, cOrig.getNoProxyInfo(), cOrig.getProxyInfo(), ...
Model: Container |-- N : 1 -- noProxyOwner (property-ref="name" lazy="no-proxy" cascade="all") |-- N : 1 -- proxyOwner (property-ref="name" lazy="proxy" cascade="all") |-- N : 1 -- nonLazyOwner (property-ref="name" lazy="false" cascade="all") |-- N : 1 -- noProxyInfo" (lazy="no-proxy" cascade="all") |-- N : 1 -- proxy...
testDefaultModifiableWithReadOnlyQueryForCollectionEntities
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
Apache-2.0
private Container createContainer() { Container c = new Container( "container" ); c.setNoProxyInfo( new Info( "no-proxy info" ) ); c.setProxyInfo( new Info( "proxy info" ) ); c.setNonLazyInfo( new Info( "non-lazy info" ) ); c.setNoProxyOwner( new Owner( "no-proxy owner" ) ); c.setProxyOwner( new Owner( "pro...
Model: Container |-- N : 1 -- noProxyOwner (property-ref="name" lazy="no-proxy" cascade="all") |-- N : 1 -- proxyOwner (property-ref="name" lazy="proxy" cascade="all") |-- N : 1 -- nonLazyOwner (property-ref="name" lazy="false" cascade="all") |-- N : 1 -- noProxyInfo" (lazy="no-proxy" cascade="all") |-- N : 1 -- proxy...
createContainer
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
Apache-2.0
private void checkContainer(Container c, Set expectedInitializedObjects, Set expectedReadOnlyObjects, Session s) { checkObject( c, expectedInitializedObjects, expectedReadOnlyObjects, s ); if ( ! expectedInitializedObjects.contains( c ) ) { return; } checkObject( c.getNoProxyInfo(), expectedInitializedObject...
Model: Container |-- N : 1 -- noProxyOwner (property-ref="name" lazy="no-proxy" cascade="all") |-- N : 1 -- proxyOwner (property-ref="name" lazy="proxy" cascade="all") |-- N : 1 -- nonLazyOwner (property-ref="name" lazy="false" cascade="all") |-- N : 1 -- noProxyInfo" (lazy="no-proxy" cascade="all") |-- N : 1 -- proxy...
checkContainer
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
Apache-2.0
private void checkObject(Object entityOrProxy, Set expectedInitializedObjects, Set expectedReadOnlyObjects, Session s) { boolean isExpectedToBeInitialized = expectedInitializedObjects.contains( entityOrProxy ); boolean isExpectedToBeReadOnly = expectedReadOnlyObjects.contains( entityOrProxy ); SessionImplementor ...
Model: Container |-- N : 1 -- noProxyOwner (property-ref="name" lazy="no-proxy" cascade="all") |-- N : 1 -- proxyOwner (property-ref="name" lazy="proxy" cascade="all") |-- N : 1 -- nonLazyOwner (property-ref="name" lazy="false" cascade="all") |-- N : 1 -- noProxyInfo" (lazy="no-proxy" cascade="all") |-- N : 1 -- proxy...
checkObject
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
Apache-2.0
private Session openSession(SessionFactoryScope scope) { return scope.getSessionFactory().openSession(); }
Model: Container |-- N : 1 -- noProxyOwner (property-ref="name" lazy="no-proxy" cascade="all") |-- N : 1 -- proxyOwner (property-ref="name" lazy="proxy" cascade="all") |-- N : 1 -- nonLazyOwner (property-ref="name" lazy="false" cascade="all") |-- N : 1 -- noProxyInfo" (lazy="no-proxy" cascade="all") |-- N : 1 -- proxy...
openSession
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/readonly/ReadOnlySessionLazyNonLazyTest.java
Apache-2.0