When I create a jhipster thru eclipse plugin, I get src/model/Model.jdl
However this file is not available when I create the project thru online page, https://start.jhipster.tech/#/generate-application.
Did I miss can option while creating this project?
If you have the jdl for the User and Authority, kindly post the same. I am curious to know if authority.name is an enum. If so, how can I add few more entries to that list.
There's no JDL for User and Authority because they are not generated by the entity sub generator. I don't use Eclipse so I can't say how this Model.jdl file was created but you can easily create it from command line in your project directory by running jhipster export-jdl src/model/Model.jdl
Related
when I use django2.0 I met an error:django.template.exceptions.TemplateDoesNotExist: name.html. I find the problem is that the django didn't create the template directory automatically. I use commanddjango-admin startproject demo to start my project, but I can't see the template directory as tutorial.
May I ask what's the problem?
I am trying out jhipster and learning the technology stack.
Environment:
Database:
Orcale (both prod and dev)
Elasticsearch
Windows
I created a new jhipster project and copied some external generated entities into the domain folder.
Then wrote a parser that generates the [Entity].json file in the .jhipster folder.
I ran the entity subgenerator using this json file which asks me to overwrite the existing entity file(which I copied from external project).
I select no and then the generator generates the CRUD html/js files.
When I run the application, it can save/edit data correctly.
But when I search, I get IndexMissingException.
I checked the target folder and found that target/elasticsearch/data does not contain any index for this entity.
I am not very familiar with elasticsearch and would like to know if there is any workaround for this IndexMissingException
There are a few ways to solve this.
You can simply delete your target folder while the application isn't running, then rerun it. This will regenerate the indexes for all of your entities, but because Elasticsearch is essentially a data store, you will lose all data from it so it is not appropriate for a production environment.
I have created a Yeoman generator that will generate a service to reinsert all data from your main datastore into your elasticsearch indexes. This can help resolve the data issue from the first solution. It will also programmatically delete and recreate your indexes, so it can be used to solve your problem directly.
You can use the Create Index API while the server is running. This is important for a production environment where the data in your index is important to keep.
I have developped a Jhipster project.
I need to create a new one which will be quite the same (but not the same). I would like to duplicate the first project.
The second project would just have a different name and different main package name.
Is there a way to do that properly?
Thanks
Duplicate your project folder, in new folder edit .yo-rc.json file and change name and package. You may also want to change the rememberMeKey
Delete src folder
Run jhipster --with-entities to re-generate app with new settings
Copy back from old project what you've added
Delete yo-rc.json .... and generate your new entity then every thing will be ok (Tested)
I'm trying to make a JHipster project from scratch. I've done this before, but for some reason it's not working anymore. When I go to my console, navigate to a blank folder and use "yo jhipster" it responds with:
"This is an existing project, using the configuration from your .yo-rc.json file
to re-generate the project..."
The thing I don't understand is why it's giving me this message for a brand new project in a completely blank folder that has been untouched by JHipster thus far. Anyone know where this is coming from?
Thanks.
Probably you have a problem in your app.jh
I had the same problem when I try to change de language.
Try to set de default options first and then change it. Remember to remove the .yo-rc.json file first.
I'm following the tutorial here.
I created a new Web Application. I then added two Class Library projects, Common and Domain. The common project contains the SubSonic library while the Domain project contains the SubSonic .tt and .ttinclude files.
After modifying the settings in Settings.ttinclude, I try to 'Run custom tool' on the tt files and I get this error:
Running transformation: System.ArgumentNullException: Value cannot be null.
Parameter name: The project does not contain App.config or Web.config file.
I can provide the rest of the stack trace, but it appears that it can't find my Web.config which was the connection string. Adding an app.config to the Domain project just causes the generation step to complain about not finding expected sections.
Is there a way to have these files in a separate assembly but still use the web.config for settings?
You need to place an App.config in the project you want to generate from. Yes, it's redundant but there's no other way to handle this with T4