Skip to content

Commit 1027fa1

Browse files
committed
update package namespace from io.retrorock to io.github.wilburhimself
1 parent bc3c414 commit 1027fa1

File tree

27 files changed

+69
-69
lines changed

27 files changed

+69
-69
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Theory (Java)
22

33
[![CI](https://github.com/wilburhimself/theory_java/actions/workflows/ci.yml/badge.svg)](https://github.com/wilburhimself/theory_java/actions/workflows/ci.yml)
4-
[![Maven Central](https://img.shields.io/maven-central/v/io.retrorock/theory.svg)](https://central.sonatype.com/artifact/io.retrorock/theory)
4+
[![Maven Central](https://img.shields.io/maven-central/v/io.github.wilburhimself/theory.svg)](https://central.sonatype.com/artifact/io.github.wilburhimself/theory)
55

66
A small, annotation-driven data access library built on Spring JDBC. It provides:
77

@@ -40,7 +40,7 @@ Then, in a separate project, add the dependency (adjust version if needed):
4040

4141
```xml
4242
<dependency>
43-
<groupId>io.retrorock</groupId>
43+
<groupId>io.github.wilburhimself</groupId>
4444
<artifactId>theory</artifactId>
4545
<version>1.0-SNAPSHOT</version>
4646
</dependency>
@@ -53,8 +53,8 @@ Then, in a separate project, add the dependency (adjust version if needed):
5353
Annotate your entity with table/column mapping. Extend `Model` to get helpers like `serialize()` and JDBC `RowMapper` behavior.
5454

5555
```java
56-
import io.retrorock.theory.annotations.*;
57-
import io.retrorock.theory.base.Model;
56+
import io.github.wilburhimself.theory.annotations.*;
57+
import io.github.wilburhimself.theory.base.Model;
5858

5959
@Table(name = "users", alias = "u")
6060
public class User extends Model {
@@ -79,7 +79,7 @@ Relationships can be declared with `@BelongsTo` on a field referencing another `
7979
Extend `Repository<T>` and wire a `JdbcTemplate` (via Spring or manually through `JdbcDaoSupport`).
8080

8181
```java
82-
import io.retrorock.theory.base.Repository;
82+
import io.github.wilburhimself.theory.base.Repository;
8383
import org.springframework.jdbc.core.RowMapper;
8484
import org.springframework.jdbc.core.BeanPropertyRowMapper;
8585

@@ -120,7 +120,7 @@ User u = repo.find(1);
120120
List<User> users = repo.list();
121121

122122
// Custom select with Query
123-
var q = new io.retrorock.theory.operations.Query();
123+
var q = new io.github.wilburhimself.theory.operations.Query();
124124
q.db.from(User.class)
125125
.fields(User.class)
126126
.where("u.email = '%s'", "[email protected]")
@@ -140,11 +140,11 @@ user.setEmail("[email protected]");
140140
user.setName("Bob");
141141

142142
// Insert and return generated key
143-
Integer id = repo.persist(user, new io.retrorock.theory.operations.Insert());
143+
Integer id = repo.persist(user, new io.github.wilburhimself.theory.operations.Insert());
144144
user.identify(id);
145145

146146
// Update example
147-
var update = new io.retrorock.theory.operations.Update();
147+
var update = new io.github.wilburhimself.theory.operations.Update();
148148
repo.persist(user, update);
149149

150150
// Raw SQL
@@ -153,16 +153,16 @@ repo.persist("DELETE FROM users WHERE id = 123");
153153

154154
## Minimal Runnable Example
155155

156-
This repo includes a minimal example using H2 in-memory DB under `src/test/java/io/retrorock/theory/example/`:
156+
This repo includes a minimal example using H2 in-memory DB under `src/test/java/io/github/wilburhimself/theory/example/`:
157157

158-
- `User` model: `src/test/java/io/retrorock/theory/example/User.java`
159-
- `UserRepository`: `src/test/java/io/retrorock/theory/example/UserRepository.java`
160-
- Test: `src/test/java/io/retrorock/theory/example/UserRepositoryTest.java`
158+
- `User` model: `src/test/java/io/github/wilburhimself/theory/example/User.java`
159+
- `UserRepository`: `src/test/java/io/github/wilburhimself/theory/example/UserRepository.java`
160+
- Test: `src/test/java/io/github/wilburhimself/theory/example/UserRepositoryTest.java`
161161

162162
Run just the example test:
163163

164164
```bash
165-
mvn -Dtest=io.retrorock.theory.example.UserRepositoryTest test
165+
mvn -Dtest=io.github.wilburhimself.theory.example.UserRepositoryTest test
166166
```
167167

168168
## Spring Configuration

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>io.retrorock</groupId>
7+
<groupId>io.github.wilburhimself</groupId>
88
<artifactId>theory</artifactId>
99
<version>1.0-SNAPSHOT</version>
1010

src/main/java/io/retrorock/theory/annotations/BelongsTo.java renamed to src/main/java/io/github/wilburhimself/theory/annotations/BelongsTo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.retrorock.theory.annotations;
1+
package io.github.wilburhimself.theory.annotations;
22

33
import java.lang.annotation.ElementType;
44
import java.lang.annotation.Retention;

src/main/java/io/retrorock/theory/annotations/Column.java renamed to src/main/java/io/github/wilburhimself/theory/annotations/Column.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.retrorock.theory.annotations;
1+
package io.github.wilburhimself.theory.annotations;
22

33
import java.lang.annotation.ElementType;
44
import java.lang.annotation.Retention;

src/main/java/io/retrorock/theory/annotations/PrimaryKey.java renamed to src/main/java/io/github/wilburhimself/theory/annotations/PrimaryKey.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.retrorock.theory.annotations;
1+
package io.github.wilburhimself.theory.annotations;
22

33
import java.lang.annotation.Retention;
44
import java.lang.annotation.RetentionPolicy;

src/main/java/io/retrorock/theory/annotations/Table.java renamed to src/main/java/io/github/wilburhimself/theory/annotations/Table.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.retrorock.theory.annotations;
1+
package io.github.wilburhimself.theory.annotations;
22

33
import java.lang.annotation.Retention;
44
import java.lang.annotation.RetentionPolicy;

src/main/java/io/retrorock/theory/base/Model.java renamed to src/main/java/io/github/wilburhimself/theory/base/Model.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package io.retrorock.theory.base;
1+
package io.github.wilburhimself.theory.base;
22

3-
import io.retrorock.theory.annotations.BelongsTo;
4-
import io.retrorock.theory.annotations.Column;
5-
import io.retrorock.theory.annotations.PrimaryKey;
6-
import io.retrorock.theory.helpers.RowMapperHelper;
3+
import io.github.wilburhimself.theory.annotations.BelongsTo;
4+
import io.github.wilburhimself.theory.annotations.Column;
5+
import io.github.wilburhimself.theory.annotations.PrimaryKey;
6+
import io.github.wilburhimself.theory.helpers.RowMapperHelper;
77
import org.apache.commons.beanutils.PropertyUtils;
88
import org.springframework.jdbc.core.RowMapper;
99

src/main/java/io/retrorock/theory/base/Operation.java renamed to src/main/java/io/github/wilburhimself/theory/base/Operation.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package io.retrorock.theory.base;
1+
package io.github.wilburhimself.theory.base;
22

3-
import io.retrorock.theory.interfaces.IOperation;
4-
import io.retrorock.theory.helpers.ModelMapper;
3+
import io.github.wilburhimself.theory.interfaces.IOperation;
4+
import io.github.wilburhimself.theory.helpers.ModelMapper;
55

66
import java.util.HashMap;
77
import java.util.Map;

src/main/java/io/retrorock/theory/base/Repository.java renamed to src/main/java/io/github/wilburhimself/theory/base/Repository.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
package io.retrorock.theory.base;
1+
package io.github.wilburhimself.theory.base;
22

3-
import io.retrorock.theory.interfaces.IRepository;
4-
import io.retrorock.theory.operations.Query;
5-
import io.retrorock.theory.operations.Delete;
6-
import io.retrorock.theory.operations.Insert;
7-
import io.retrorock.theory.operations.Update;
3+
import io.github.wilburhimself.theory.interfaces.IRepository;
4+
import io.github.wilburhimself.theory.operations.Query;
5+
import io.github.wilburhimself.theory.operations.Delete;
6+
import io.github.wilburhimself.theory.operations.Insert;
7+
import io.github.wilburhimself.theory.operations.Update;
88
import org.springframework.jdbc.core.PreparedStatementCreator;
99
import org.springframework.jdbc.core.RowMapper;
1010
import org.springframework.jdbc.core.support.JdbcDaoSupport;

src/main/java/io/retrorock/theory/components/From.java renamed to src/main/java/io/github/wilburhimself/theory/components/From.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.retrorock.theory.components;
1+
package io.github.wilburhimself.theory.components;
22

33
public class From {
44
private String tableName;

0 commit comments

Comments
 (0)