Skip to content

Velocity function to camelCase a string #22

@ndawod

Description

@ndawod

Hello and thanks for this wonderful tool.

I looked around for a function that can convert a string_with_underscores to a camelCase format stringWithUnderscores, but I cannot seem to find such a function.

Is there such a function? How easy it would be to submit a pr to add it?

Why, you'd ask?

Because if field name have a prefix (personal_computer_model, personal_computer_ram, etc) matching the catalog name (personal_computer), then when auto-generating an entity, there's no need to have the properties named:

personalComputerModel
personalComputerRam

but rather, just:

model
ram

and the class would be named: personalComputer.

Makes sense? :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions