Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4XrpfdpsacrvqnrBM
74 lines
2.0 KiB
Plaintext
74 lines
2.0 KiB
Plaintext
package com.ankurm.data;
|
|
|
|
import jakarta.annotation.Generated;
|
|
import jakarta.persistence.TypedQueryReference;
|
|
import jakarta.persistence.metamodel.StaticMetamodel;
|
|
import jakarta.persistence.query.StaticTypedQueryReference;
|
|
import java.math.BigDecimal;
|
|
import static java.util.Arrays.asList;
|
|
import static java.util.Collections.unmodifiableList;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* Static metamodel for {@link com.ankurm.data.Library}
|
|
**/
|
|
@StaticMetamodel(Library.class)
|
|
@Generated("org.hibernate.processor.HibernateProcessor")
|
|
public abstract class Library_ {
|
|
|
|
|
|
|
|
/**
|
|
* Return a reference to the query named {@code com.ankurm.data.Library#cheaperThan(java.math.BigDecimal)}.
|
|
*
|
|
* @see com.ankurm.data.Library#cheaperThan(BigDecimal)
|
|
**/
|
|
public static TypedQueryReference<Book> cheaperThan(BigDecimal max) {
|
|
return new StaticTypedQueryReference<>(
|
|
"com.ankurm.data.Library#cheaperThan(java.math.BigDecimal)",
|
|
Library.class,
|
|
"cheaperThan",
|
|
Book.class,
|
|
List.of(BigDecimal.class),
|
|
List.of("max"),
|
|
unmodifiableList(asList((Object) max))
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Return a reference to the query named {@code com.ankurm.data.Library#titlesBy(java.lang.String)}.
|
|
*
|
|
* @see com.ankurm.data.Library#titlesBy(String)
|
|
**/
|
|
public static TypedQueryReference<TitleAndYear> titlesBy(String author) {
|
|
return new StaticTypedQueryReference<>(
|
|
"com.ankurm.data.Library#titlesBy(java.lang.String)",
|
|
Library.class,
|
|
"titlesBy",
|
|
TitleAndYear.class,
|
|
List.of(String.class),
|
|
List.of("author"),
|
|
unmodifiableList(asList((Object) author))
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Return a reference to the query named {@code com.ankurm.data.Library#countBy(java.lang.String)}.
|
|
*
|
|
* @see com.ankurm.data.Library#countBy(String)
|
|
**/
|
|
public static TypedQueryReference<Long> countBy(String author) {
|
|
return new StaticTypedQueryReference<>(
|
|
"com.ankurm.data.Library#countBy(java.lang.String)",
|
|
Library.class,
|
|
"countBy",
|
|
Long.class,
|
|
List.of(String.class),
|
|
List.of("author"),
|
|
unmodifiableList(asList((Object) author))
|
|
);
|
|
}
|
|
|
|
}
|
|
|