Skip to content

Commit

Permalink
more attributes on entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Tcharl committed Nov 20, 2024
1 parent 975ff27 commit 19f38c2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion generators/spring-boot/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const command = {
type: String,
},
prompt: gen => ({
when: () => [GATEWAY, MICROSERVICE].includes(gen.jhipsterConfigWithDefaults.applicationType),
when: () => ['gateway', 'microservice'].includes(gen.jhipsterConfigWithDefaults.applicationType),
type: 'list',
message: 'Which service discovery server do you want to use?',
default: 'consul',
Expand Down
4 changes: 1 addition & 3 deletions generators/spring-boot/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ import {
APPLICATION_TYPE_MICROSERVICE,
applicationTypes,
cacheTypes,
clientFrameworkTypes,
databaseTypes,
fieldTypes,
messageBrokerTypes,
Expand All @@ -72,7 +71,6 @@ const { CASSANDRA, COUCHBASE, MONGODB, NEO4J, SQL } = databaseTypes;
const { MICROSERVICE, GATEWAY } = applicationTypes;
const { KAFKA, PULSAR } = messageBrokerTypes;
const { ELASTICSEARCH } = searchEngineTypes;
const { NO: NO_CLIENT } = clientFrameworkTypes;

const { BYTES: TYPE_BYTES, BYTE_BUFFER: TYPE_BYTE_BUFFER } = fieldTypes.RelationalOnlyDBTypes;
const { CUCUMBER, GATLING } = testFrameworkTypes;
Expand Down Expand Up @@ -209,7 +207,7 @@ export default class SpringBootGenerator extends BaseApplicationGenerator {
return this.asComposingComponentTaskGroup({
async composing() {
const { clientFramework, skipClient } = this.jhipsterConfigWithDefaults;
if (!skipClient && clientFramework !== NO_CLIENT) {
if (!skipClient && clientFramework !== 'no') {
// When using prompts, clientFramework will only be known after composing priority.
await this.composeWithJHipster('jhipster:java:node');
}
Expand Down
2 changes: 1 addition & 1 deletion generators/spring-boot/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export async function askForServerSideOpts(this: CoreGenerator, { control }) {
});
}
opts.push({
value: COUCHBASE,
value: 'couchbase',
name: '[BETA] Couchbase',
});
opts.push({
Expand Down
2 changes: 2 additions & 0 deletions lib/types/application/entity.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ export interface Entity<F extends BaseField = Field, R extends BaseRelationship
* Any file is of type Bytes or ByteBuffer
*/
anyFieldIsBlobDerived: boolean;
entityJavaFilterableProperties: any[];
entityJavaCustomFilters: any[];
/**
* Any field is of type ZonedDateTime, Instant or LocalDate
*/
Expand Down

0 comments on commit 19f38c2

Please sign in to comment.