Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>powerbasetablegeneratorNew to Visual Studio Code? Get it now.
powerbasetablegenerator

powerbasetablegenerator

SeymaKotan

|
18 installs
| (0) | Free
powerbase orm table yapisini generate eden extensiondir
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

powerbasetablegenerator README

A new ORM tool called PowerBase was developed in 2023.

Motivation and Purpose

In this ORM structure, we represent the tables on the database thanks to the TableBase class.

Each property of the TableGeneric structures derived from this TableBase represents the columns of the table.

I wanted to write an extension to generate POJOs of these classes. For both learning and having fun :)

Extension Usage

You can use the following steps for usage.

First of all, you need to create a json like below. In this json; className: represents the name of the class derived from the TableBase you created.

tableName: Represents the name of the table defined in the database.

fields: Represents the columns of the table. Here you need to specify the names and their types for each column. In this way, you can see the getter setter methods that will be created in POJO.

filePath: All you have to do is provide the file path to where you want the created POJO to be saved. If there is no file path, it creates the file path itself.

{ "className": "TableExample", "tableName": "t_setting_example", "fields": { "name": "string", "application": "string", "url": "string", "timeout": "integer", "number": "object" }, "filePath": "C:/Users/GLB90084442/Documents/extentionpath" }

As a result, it creates a Java class as follows.

public class TableExample extends TableBase {

public TableExample(DBConnection dbConnection) {
    super(dbConnection);
}

public TableExample() {
    super();
    this.tableName = "t_setting_example";
    this.fieldsName = "name, application, url, timeout, number";
    this.fieldsValue = "";
    this.key = "uuid";
}

public  String getName() {
    return getStringValue("NAME");
}

public TableExample setName( String name) {
    this.setNewData("NAME", name);
    return this;
}

public  String getApplication() {
    return getStringValue("APPLICATION");
}

public TableExample setApplication( String application) {
    this.setNewData("APPLICATION", application);
    return this;
}

public  String getUrl() {
    return getStringValue("URL");
}

public TableExample setUrl( String url) {
    this.setNewData("URL", url);
    return this;
}

public  Integer getTimeout() {
    return getIntValue("TIMEOUT");
}

public TableExample setTimeout( Integer timeout) {
    this.setNewData("TIMEOUT", timeout);
    return this;
}

public  Object getNumber() {
    return getObjectValue("NUMBER");
}

public TableExample setNumber( Object number) {
    this.setNewData("NUMBER", number);
    return this;
}

}

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft