Skip to main content


Showing posts from October, 2019

Jhipster entity relationship sample

Jhipster relation entity relation ship sample

entity Vendor
name String required,
    image ImageBlob ,
entity Menu
entity FoodItem {
foodname String required ,
    cost Long required ,
    image ImageBlob ,
    capacity Integer required
// an ignored comment
/** not an ignored comment */
entity Order {
    employeeid String required,
    phone String,
    date Instant required,
cost Long,
    status Status,

enum Status {
relationship OneToMany {
  FoodItem to Menu{fooditem(foodname)}
  Vendor to Menu{vendor(name)}
  Vendor to Order{vendor(name)}
  FoodItem to Order{fooditem(foodname)}
relationship ManyToOne {
FoodItem{user(login)} to User
Menu{user(login)} to User
Order{user(login)} to User

. Site down or unavailable AdSense Solved

Problem :
Solution for site down issue in AdSense

Solution :

Go to blogger settings --> Basics -->Publishing
Tick the redirect option as shown below
Redirect to

Activate jhipster user by default

Problem : After user registration the user name is not active until the user click email link or admin Manual activation. 
Solution : Open UserService. Java class  src/main/java/com/cookmyfood/app/service/
And go to register User method  as shown below 

publicUserregisterUser(UserDTOuserDTO, Stringpassword) and setActivated method true