Worm
Worm
Worm
Java
released Sun Dec 05 2021

What is Worm?

Worm is a Java ORM for Mysql, you can make simple query using:

User user = new User(); //User is a class that extends WormTable
user.Get(2);



Installation

Installation with maven

First, add Worm's repository into pom.xml:

<repositories>
  ...
  <repository>
    <id>worm</id>
    <url>https://repo.gump.dev/snapshots/</url>
  </repository>
</repositories>


Then, add Worm's dependency too:

<dependencies>
  ...
  <dependency>
    <groupId>dev.gump</groupId>
    <artifactId>worm</artifactId>
    <version>1.0-SNAPSHOT</version>
    <scope>compile</scope>
  </dependency>
</dependencies>



Installation with Gradle

First, add Worm's repository into build.gradle:

repositories {
  ...
  mavenCentral()
  maven {
    name = 'worm'
    url = 'https://repo.gump.dev/snapshots/'
  }
}


Then, add Worm's dependency too:

  dependencies {
    ...
    compile 'dev.gump🪱1.0-SNAPSHOT'
  }

(i don't know if this is right, i don't use Gradle :P)



Getting Started

To get started we need to start Worm and declare your connection, use in main class:

 public static void main(String[] args) {
   WormConnection connection = new WormConnection(host, port, database, user, password);
   WormConnector.init(connection);
 }
}


Then create a class that extends WormTable:

 public class User extends WormTable {
  @WormField(sqlType="VARCHAR", lenght=36, idColumn=true)
  public String User_id; 
  @WormField(sqlType="VARCHAR", lenght=50)
  public String Name;
  @WormField(sqlType="VARCHAR", lenght=50)
  public String Email;
 }


Now you can use:

User user = new User();
user.Get("87bf4ec7-9051-47a1-b9f4-eea9b9ed8959")


If you wanna learn more Click here to see documentation 



FAQ

  • Why you created that? Cuz is so boring to create SQL querys and treat on Java, and I'm lazy
  • I Found a BUG! Click here and open an issue
  • Can I help with the project? Sure! just send your PR :D
  • Can I contact you? Yep, send email to [email protected]


Thanks

Thanks to HikariCP, Mysql Connector Java and slf4j

newsletter
newsletter-text
newsletter-or-discord
copyright gump.dev - 2026
privacy-policy
admin-page