tejainece on master
Merge pull request #25 from Jag… Jaguar 0.5.x primary changes Big step towards 0.5.0 and 1 more (compare)
Kleak on master
Version bump Merge pull request #24 from Jag… Added glob route matching witho… and 2 more (compare)
class _StripBearerProcessor implements FieldProcessor<String, String> {
const _StripBearerProcessor();
@override
String serialize(String value) => 'Bearer $value';
@override
String deserialize(String value) {
return value.substring(7);
}
}
@GenSerializer(
fields: {
'accessToken': Field(
processor: _StripBearerProcessor(),
),
},
)
class CustomerResponseSerializer extends Serializer<CustomerResponse>
with _$CustomerResponseSerializer {}
const EnDecode(processor: _StripBearerProcessor)
instead of Field(processor: ...)
though, not sure which one is more correct: https://github.com/Jaguar-dart/jaguar_serializer/wiki/Basics
I've got an issue where I have an entity called product groups, it has products. When I save the products and set their FK to catalog like so
@BelongsTo(ProductGroupEntityBean)
int productGroupId;
if I save the products group with cascade the products aren't saved. If I save them both with an insert they're saved but when I get the productGroups I get no products in the collection. It's almost as though the relationships aren't being specified correctly. Is the above right? Is this the correct way to declare a relationship?
Future<void> createTable({bool ifNotExists = false}) async {
final st = Sql.create(tableName, ifNotExists: ifNotExists);
st.addInt(id.name, primary: true, isNullable: false);
st.addStr(name.name, isNullable: false);
st.addInt(productCatalogId.name,
foreignTable: productCatalogEntityBean.tableName,
foreignCol: productCatalogEntityBean.id.name,
isNullable: false);
return adapter.createTable(st);