Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 03 2017 20:53
    tejainece opened #101
  • Jun 03 2017 20:52
    tejainece closed #100
  • Jun 03 2017 20:41
    tejainece synchronize #100
  • Jun 03 2017 20:15
    tejainece opened #100
  • Jun 03 2017 19:46

    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)

  • Jun 03 2017 19:46
    tejainece closed #99
  • Jun 03 2017 18:18
    tejainece opened #99
  • Mar 09 2017 18:38
    tejainece closed #98
  • Mar 09 2017 18:38
    tejainece commented #98
  • Mar 04 2017 08:39
    tejainece opened #98
  • Mar 03 2017 15:43
    tejainece closed #95
  • Mar 03 2017 15:43
    tejainece commented #95
  • Feb 28 2017 17:00
    lejard-h assigned #97
  • Feb 28 2017 17:00
    lejard-h assigned #96
  • Feb 28 2017 17:00
    lejard-h opened #97
  • Feb 28 2017 17:00
    lejard-h opened #96
  • Feb 28 2017 16:58
    lejard-h closed #90
  • Feb 28 2017 16:58
    lejard-h commented #90
  • Feb 27 2017 21:39

    Kleak on master

    Version bump Merge pull request #24 from Jag… Added glob route matching witho… and 2 more (compare)

  • Feb 27 2017 21:39
    Kleak closed #92
Massimo Caroccia
@carmas123
Revi...
sorry I don't know how the annotation generation work in dart...but the real best way is this:
class CodiciIVA extends BaseModel {
@PrimaryKey()
String codice = "";
String descrizione = "";
num percentuale = 0;
int noImponibile = 0;
}

class Articoli extends BaseModel {
@PrimaryKey()
String codice = "";

@Parent(refCol: "codice")
CodiciIVA codiciIVA;
}

this is a very good result
Ravi Teja Gudapati
@tejainece
You have to specify the foreign key.
Yes. I agree with your solution.
Only thing missing is foreign key in articoli
Massimo Caroccia
@carmas123
yes the foreignkey is needed only if we want to generate the table automatically
otherwise not
if we start the app with a pre-build database we dont need to specify the foreign key
or not?
Ravi Teja Gudapati
@tejainece
Jaguar assumes table creation
Massimo Caroccia
@carmas123
yes this is true
but it should not be mandatory
Ravi we can this preload into fromMap method
Ravi Teja Gudapati
@tejainece
What do you mean?
When you execute find* method with preload set to true
The codicilVA field will automatically preloaded.
Massimo Caroccia
@carmas123
I think that the best way is to have an async fromMap method
that can load the parent data
with an await execution
model.codiceIVA = adapter.parseValue(map['codiceIVA']);
model.codiceIVA = await CodiciIVA.findByKey(adapter.parseValue(map['codiceIVA']));
Ravi Teja Gudapati
@tejainece
Jaguar does not do joins
It makes multiple request
codiceIVA is not in original result
Massimo Caroccia
@carmas123
mm
yes
otherwise there is no option to sync load the reference table
Ravi Teja Gudapati
@tejainece
Do you mean atomic fetch?
Massimo Caroccia
@carmas123
yes
we need to read the codiciiva sync with generate Articoli class
Ron Gonzalez Lobo
@ronlobo
@tejainece Tagging new releases would be great, it would allow pinning/locking down vendor package for projects using jaguar in production.
Ravi Teja Gudapati
@tejainece
@ronlobo cant pub versions be used for this?
Ron Gonzalez Lobo
@ronlobo
You’re right, was conflating this with composer versioning
Ravi Teja Gudapati
@tejainece
:+1:
Ravi Teja Gudapati
@tejainece
@iambudi hotreload should work. I will test it and let you know
Ravi Teja Gudapati
@tejainece
@iambudi hotreload works now
Ravi Teja Gudapati
@tejainece
@iambudi I have added a wiki entry for hotreload: https://github.com/Jaguar-dart/jaguar/wiki/Hotreload
Jaumard
@jaumard
Hey @tejainece ! I need to order a request with and boolean AND in alphabetical order. Problem is that I can’t because when you put ascending to true it’s for all ordering not only one :/
is there a workaround for this ?
Ok be looking at the code this is working var find = bean.finder.orderBy(bean.isFavorite.name).orderBy(bean.description.name, true); :)
Sung-Chul Lee
@sclee15
How to log jaguar requests?
Ravi Teja Gudapati
@tejainece
@sclee15
  server.log.onRecord.listen(print);
  await server.serve(logRequests: true);
Rob Halff
@rhalff
I'm trying to use the orm and for every generated .jorm file I get this type error within the generated bean code:
error: '_ClubBean.fields' ('() → Map<String, dynamic>') isn't a valid override of 'Bean.fields' ('() → Map<String, Field<dynamic>>'). (invalid_override)
Do I somehow have a version mismatch between modules? I think I'm using the latest versions for every package though.
To me it seems the generated code doesn't implement Bean correctly.