Code Monkey home page Code Monkey logo

Comments (6)

sendilkumarn avatar sendilkumarn commented on May 19, 2024

Entity generation PR is still not merged. So, it is not possible to generate entities at the moment.

Refer #37

from jhipster-kotlin.

JavierFuentes avatar JavierFuentes commented on May 19, 2024

@sendilkumarn,
what is the status of this...?

I've just executed then command $ jhipster --blueprint kotlin entity Todo without errors but all new Classes are .java files

My version is:

$ jhipster --version
5.8.2

from jhipster-kotlin.

sendilkumarn avatar sendilkumarn commented on May 19, 2024

@JavierFuentes This should work even without the blueprint option.

jhipster entity Todo will suffice. (provided the project is created with blueprint option enabled)

from jhipster-kotlin.

JavierFuentes avatar JavierFuentes commented on May 19, 2024

Sorry @sendilkumarn,
but I've reverted all unversioned files in my VCS and repeat the entity creation without --blueprint modifier but the results are exactly the same... all server files are .java files

My version of Yeoman is this

$ yo --version
2.0.5

And my .yo-rc.json content is this:

{
    "generator-jhipster-kotlin": {
        "promptValues": {
            "packageName": "com.mycompany.myapp"
        },
        "jhipsterVersion": "5.7.2",
        "applicationType": "monolith",
        "baseName": "jhkPrueba",
        "packageName": "com.mycompany.myapp",
        "packageFolder": "com/mycompany/myapp",
        "serverPort": "8080",
        "authenticationType": "jwt",
        "cacheProvider": "ehcache",
        "enableHibernateCache": true,
        "websocket": "spring-websocket",
        "databaseType": "sql",
        "devDatabaseType": "mysql",
        "prodDatabaseType": "mysql",
        "searchEngine": false,
        "messageBroker": false,
        "serviceDiscoveryType": false,
        "buildTool": "maven",
        "enableSwaggerCodegen": true,
        "jwtSecretKey": "<the-secret>"
    },
    "generator-jhipster": {
        "jhipsterVersion": "5.8.2",
        "applicationType": "monolith",
        "baseName": "jhkPrueba",
        "clientFramework": "angularX",
        "useSass": true,
        "clientPackageManager": "npm",
        "testFrameworks": ["gatling", "protractor"],
        "jhiPrefix": "jhi",
        "entitySuffix": "",
        "dtoSuffix": "DTO",
        "otherModules": [
            {
                "name": "generator-jhipster-kotlin",
                "version": "0.7.0"
            }
        ],
        "enableTranslation": false,
        "blueprint": "generator-jhipster-kotlin",
        "blueprintVersion": "0.7.0"
    }
}

I only apreciate that jhipsterVersion doesn't match between generator-jhipster-kotlin and generator-jhipster entries but I don't know if this is the problem...

If I execute this inside my project's folder, this is the result:

$ jhipster --version
INFO! Using JHipster version installed locally in current project's node_modules
5.8.2

If I execute this outside my project's folder, the version is the same:

$ jhipster --version
INFO! Using JHipster version installed globally
5.8.2

I hope you can reproduce the scenario...

from jhipster-kotlin.

JavierFuentes avatar JavierFuentes commented on May 19, 2024

Hi @sendilkumarn,
have you been able to reproduce the escenario?

Am I the only one that jhipster-kotlin generator blueprint generates entities in Java instead of Kotlin?

from jhipster-kotlin.

pvliss avatar pvliss commented on May 19, 2024

Hello @JavierFuentes. You are currently using Kotlin blueprint 0.7.0 which is the latest release but the entity generator PR(#74) was merged after that(see commit history). Currently the only way you can use the entity generator is by using the master branch. Sorry

We are working now to finish updating to JHipster 6.x(SB 2.1)(also still in development) and simultaneously reach full feature parity with the Java generator(see #98 )

@sendilkumarn Would it make sense to release a new version from current master so that the entity generator could be used?

from jhipster-kotlin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.