Generator-jhipster: Created Entity not displayed under entity menu in Angular 2

Created on 13 Feb 2017  路  11Comments  路  Source: jhipster/generator-jhipster

Overview of the issue

Unable to view the created entities under entity menu. But the generated codes are available in the respected area. There is no error while creating the entity as well the application startup.

Motivation for or Use Case

Created entities aren't available under Entities menu

Reproduce the error
  1. generate single page app
  2. generate any entity
  3. go to app to entity menu

image

Related issues
Suggest a Fix
JHipster Version(s)

4.0.3

JHipster configuration

Welcome to the JHipster Information Sub-Generator

JHipster Version(s)
[email protected] d:\Projects\jhipster\app
`-- [email protected]

JHipster configuration, a .yo-rc.json file generated in the root folder
{
  "generator-jhipster": {
    "jhipsterVersion": "4.0.3",
    "baseName": "app",
    "packageName": "cz.janys",
    "packageFolder": "cz/janys",
    "serverPort": "8080",
    "authenticationType": "jwt",
    "hibernateCache": "no",
    "clusteredHttpSession": false,
    "websocket": false,
    "databaseType": "mongodb",
    "devDatabaseType": "mongodb",
    "prodDatabaseType": "mongodb",
    "searchEngine": false,
    "messageBroker": false,
    "serviceDiscoveryType": false,
    "buildTool": "maven",
    "enableSocialSignIn": true,
    "useSass": true,
    "clientPackageManager": "npm",
    "applicationType": "monolith",
    "testFrameworks": [],
    "jhiPrefix": "jhi",
    "enableTranslation": true,
    "nativeLanguage": "cs",
    "languages": [
      "cs",
      "en"
    ],
    "clientFramework": "angular2"
  }
}
Entity configuration(s) entityName.json files generated in the .jhipster directory

Order.json

{
    "fluentMethods": true,
    "relationships": [],
    "fields": [
        {
            "fieldName": "name",
            "fieldType": "String",
            "fieldValidateRules": [
                "required",
                "minlength"
            ],
            "fieldValidateRulesMinlength": "3"
        },
        {
            "fieldName": "time",
            "fieldType": "ZonedDateTime",
            "fieldValidateRules": [
                "required"
            ]
        },
        {
            "fieldName": "price",
            "fieldType": "BigDecimal",
            "fieldValidateRules": [
                "required"
            ]
        }
    ],
    "dto": "no",
    "service": "no",
    "entityTableName": "order",
    "pagination": "infinite-scroll"
}

Browsers and Operating System

java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) Client VM (build 25.111-b14, mixed mode)

git version 2.5.0.windows.1

node: v7.4.0

npm: 4.0.5

bower: 1.8.0

gulp:
[21:33:30] CLI version 3.9.0

yeoman: 1.8.5

Docker version 1.9.1, build a34a1d5

docker-compose version 1.5.2, build e5cf49d

Browsers and Operating System

all browsers

  • [-] Checking this box is mandatory (this is just to show you read everything)

Most helpful comment

Hello, I'm having the same problem using yarn install && yarn start, I load localhost:9000 and under entities men霉 there are nothing, but the views for entities are generated.

All 11 comments

I'm closing this as it's pretty clear you didn't run npm start... Have a look at the documentation

I got the same issue. Were you able to solve it @mjanzs ?

It worked after I've done all installation steps properly including npm start as is in advice above ^

This is written in doc: http://www.jhipster.tech/using-angular/

Hello, I'm having the same problem using yarn install && yarn start, I load localhost:9000 and under entities men霉 there are nothing, but the views for entities are generated.

Hello, I have the same issue. But when I checked the console of the browser while clicking the entity class it shows below message

User has not any of required authorities: ["ROLE_USER"]0: "ROLE_USER"length: 1__proto__: Array(0)

Please suggest the solution for this issue. I have checked in the table for the default user and it is assinged with ROLE_ADMIN,

Don't understand why this happening. Please help.

User roles are not hierarchical, at least on front end side. You can either assign role ROLE_USER to current user or modify route to allow access to user with role ROLE_ADMIN

Same problem here, @ITGuy9401

@ltpitt Please don't comment on an old issue.
If you think this issue still applies, please create a new ticket with proper details.

I have same issue

@ysf08 Please don't comment on an old issue.
If you think this issue still applies, please create a new ticket with proper details.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sdoxsee picture sdoxsee  路  4Comments

lsadehaan picture lsadehaan  路  3Comments

kaidohallik picture kaidohallik  路  3Comments

pascalgrimaud picture pascalgrimaud  路  4Comments

RizziCR picture RizziCR  路  3Comments