-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HHH-3356 Support for normal and lateral subquery in from clause
- Loading branch information
Showing
47 changed files
with
4,404 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
...hibernate/metamodel/model/domain/internal/AnonymousTupleBasicEntityIdentifierMapping.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
* Hibernate, Relational Persistence for Idiomatic Java | ||
* | ||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later | ||
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html | ||
*/ | ||
package org.hibernate.metamodel.model.domain.internal; | ||
|
||
import org.hibernate.Incubating; | ||
import org.hibernate.engine.spi.IdentifierValue; | ||
import org.hibernate.engine.spi.SharedSessionContractImplementor; | ||
import org.hibernate.metamodel.mapping.BasicEntityIdentifierMapping; | ||
import org.hibernate.metamodel.mapping.JdbcMapping; | ||
import org.hibernate.property.access.spi.PropertyAccess; | ||
import org.hibernate.query.sqm.SqmExpressible; | ||
|
||
/** | ||
* @author Christian Beikov | ||
*/ | ||
@Incubating | ||
public class AnonymousTupleBasicEntityIdentifierMapping extends AnonymousTupleBasicValuedModelPart | ||
implements BasicEntityIdentifierMapping { | ||
|
||
private final BasicEntityIdentifierMapping delegate; | ||
|
||
public AnonymousTupleBasicEntityIdentifierMapping( | ||
String selectionExpression, | ||
SqmExpressible<?> expressible, | ||
JdbcMapping jdbcMapping, | ||
BasicEntityIdentifierMapping delegate) { | ||
super( delegate.getAttributeName(), selectionExpression, expressible, jdbcMapping ); | ||
this.delegate = delegate; | ||
} | ||
|
||
@Override | ||
public IdentifierValue getUnsavedStrategy() { | ||
return delegate.getUnsavedStrategy(); | ||
} | ||
|
||
@Override | ||
public Object getIdentifier(Object entity, SharedSessionContractImplementor session) { | ||
return delegate.getIdentifier( entity, session ); | ||
} | ||
|
||
@Override | ||
public Object getIdentifier(Object entity) { | ||
return delegate.getIdentifier( entity ); | ||
} | ||
|
||
@Override | ||
public void setIdentifier(Object entity, Object id, SharedSessionContractImplementor session) { | ||
delegate.setIdentifier( entity, id, session ); | ||
} | ||
|
||
@Override | ||
public Object instantiate() { | ||
return delegate.instantiate(); | ||
} | ||
|
||
@Override | ||
public PropertyAccess getPropertyAccess() { | ||
return delegate.getPropertyAccess(); | ||
} | ||
|
||
@Override | ||
public String getAttributeName() { | ||
return getPartName(); | ||
} | ||
} |
Oops, something went wrong.