Commit 23f50897 authored by nanahira's avatar nanahira

override

parent 53ee82d4
Pipeline #7151 passed with stages
in 1 minute and 5 seconds
......@@ -23,7 +23,7 @@ export enum UserRole {
@Entity()
export class User extends ManualNameDescBase implements QueryWise<User> {
applyQuery(qb: SelectQueryBuilder<User>, entityName: string) {
override applyQuery(qb: SelectQueryBuilder<User>, entityName: string) {
super.applyQuery(qb, entityName);
}
}
......@@ -20,7 +20,7 @@ export class IdBase extends TimeBase implements IdWise {
@IsPositive()
id: number;
applyQuery(qb: SelectQueryBuilder<IdBase>, entityName: string) {
override applyQuery(qb: SelectQueryBuilder<IdBase>, entityName: string) {
super.applyQuery(qb, entityName);
qb.orderBy(`${entityName}.id`, 'DESC');
applyQueryProperty(this, qb, entityName, 'id');
......
......@@ -8,7 +8,7 @@ export class IdNameBase extends IdBase implements IdNameWise {
@EntityName()
name: string;
applyQuery(qb: SelectQueryBuilder<IdNameBase>, entityName: string) {
override applyQuery(qb: SelectQueryBuilder<IdNameBase>, entityName: string) {
super.applyQuery(qb, entityName);
applyQueryPropertyLike(this, qb, entityName, 'name');
}
......
......@@ -14,7 +14,10 @@ export class ManualIdBase extends TimeBase implements StringIdWise {
@IsNotEmpty()
id: string;
applyQuery(qb: SelectQueryBuilder<ManualIdBase>, entityName: string) {
override applyQuery(
qb: SelectQueryBuilder<ManualIdBase>,
entityName: string,
) {
super.applyQuery(qb, entityName);
qb.orderBy(`${entityName}.id`, 'DESC');
applyQueryProperty(this, qb, entityName, 'id');
......
......@@ -7,7 +7,10 @@ import { applyQueryPropertyLike } from '../utility/query';
export class ManualNameBase extends ManualIdBase implements StringIdNameWise {
@EntityName()
name: string;
applyQuery(qb: SelectQueryBuilder<ManualNameBase>, entityName: string) {
override applyQuery(
qb: SelectQueryBuilder<ManualNameBase>,
entityName: string,
) {
super.applyQuery(qb, entityName);
applyQueryPropertyLike(this, qb, entityName, 'name');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment