davidmoten / davidmoten/rxjava2-jdbc
missing custom casting
- Dominant language
- Java
- Stars
- 394
- Forks
- 41
- Avg merge
- 2m
- Merged PRs (30d)
- 1
Description
idk if this can be classified as an issue but i have problem casting string to a custom class in automaping
i see no option in automap example to cast string field to customclass
example below
db.select(TEST.class)
.get()
.subscribe(
E -> System.out.println(E.getA())
).dispose();
deffinition of TEST interface :
@Query("select '{\"X\":1, \"Y\":2}'::json \"A\";")
public interface TEST {
@Column("A")
CUSTOMTYPE getA();
}
deffinition of CUSTOMTYPE interface :
public interface CUSTOMTYPE {
@Column("X")
int getX();
@Column("Y")
int getY();
}
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.