Raymond Feng
931636eda4
Allow the id(s) to be redefined by subclass
2013-10-06 21:13:52 -07:00
Raymond Feng
294ebc1ccf
Allow to reference a model as type by name
2013-10-05 11:13:10 -07:00
Raymond Feng
2f575482c0
Code clean up
2013-10-05 10:53:13 -07:00
Raymond Feng
7f170a0542
Add more tests and fix toJSON
2013-10-04 21:21:12 -07:00
Raymond Feng
2a15bb917a
Fix the foreign key definition
2013-10-04 15:49:13 -07:00
Raymond Feng
409d256e47
Add settings property back to the model class
2013-10-04 15:48:39 -07:00
Raymond Feng
24d87976e8
Merge branch 'master' into juggler-tidyup
...
Conflicts:
lib/model.js
2013-10-04 14:32:51 -07:00
Raymond Feng
89765ab18b
Merge pull request #17 from strongloop/schemaless-save
...
Make sure schemaless property value is honored over __data
2013-10-04 14:28:38 -07:00
Raymond Feng
04bda5c138
Set name and settings
2013-10-04 12:54:14 -07:00
Raymond Feng
ee426b63fc
Reset _ids for rebuild
2013-10-04 12:41:01 -07:00
Raymond Feng
1ae9478496
Fix the columnName
2013-10-03 14:49:03 -07:00
Raymond Feng
d0cdbd84ea
Use super_ to call the base class
2013-10-03 09:14:24 -07:00
Raymond Feng
691743493c
Fix copy of model definitions
2013-10-02 17:20:54 -07:00
Raymond Feng
c2baf8f05e
Export Connector class
2013-10-02 16:29:33 -07:00
Raymond Feng
1963ea9fb1
Use ModelDefinition to access model name/properties/settings
2013-10-02 15:18:50 -07:00
Raymond Feng
fad6ee5e1d
Refactor/cleanup the data source juggler implementation
...
- Add a ModelDefinition class to encapsulate the model schema handling
- Add a Connector class as the base class for connector implementations
- Optimize attachTo and mixin
- Rename some properties/methods
2013-10-01 22:14:21 -07:00
Raymond Feng
92cd7d15a6
Add a ModelDefinition class
2013-09-20 22:22:49 -07:00
Raymond Feng
1575c87caf
Make sure schemaless property value is honored over __data
2013-09-18 16:34:52 -07:00
Raymond Feng
77952d5e43
Update LDL doc for the strict mode
2013-09-16 10:59:12 -07:00
Raymond Feng
38705a42ee
Merge pull request #16 from strongloop/strongloopsuite-1.0
...
Strongloopsuite 1.0
2013-09-13 10:56:33 -07:00
Raymond Feng
2e85f3f406
Merge pull request #15 from strongloop/SLA-506
...
Allow connector to report failure during initialization
2013-09-12 17:16:33 -07:00
Raymond Feng
bf223320ea
Allow connector to report failure during initialization
2013-09-12 13:32:53 -07:00
Raymond Feng
2d072aa299
Merge pull request #12 from strongloop/SLA-370
...
Add error stack trace for ValidationError
2013-09-12 11:04:13 -07:00
Raymond Feng
59f7607914
Merge pull request #14 from strongloop/diagram-link
...
Set up assets to support embedded diagrams
2013-09-11 15:43:46 -07:00
Raymond Feng
31b03e7a72
Set up assets to support embedded diagrams
2013-09-11 15:37:10 -07:00
Raymond Feng
63ce9911cb
Add keywords to package.json
2013-09-11 10:46:09 -07:00
Raymond Feng
211f8a9ade
Finalize package.json for sls-1.0.0
2013-09-10 12:19:20 -07:00
Raymond Feng
a977fe1fba
Merge pull request #13 from strongloop/master
...
Cherry-pick two critical fixes from master to strongloop-suite-1.0 release
2013-09-09 11:00:57 -07:00
Raymond Feng
f4d62e54e6
Add error stack trace for ValidationError
...
The issue was initially reported by SLA-370.
2013-09-09 10:12:12 -07:00
Raymond Feng
0d303de917
Merge pull request #11 from strongloop/findone-failure
...
Check the filter param to make sure we have a default value
2013-09-06 13:50:16 -07:00
Raymond Feng
21e6fddf1a
Check the filter param to make sure we have a default value
...
sls-sample-app is failing if we hit http://localhost:3000/locations/findOne
In this case, a undefined param is passed in.
The fix now sets it to {} if the value is undefined/null
2013-09-06 13:42:12 -07:00
Raymond Feng
be10dfcc18
Tidy up package.json for LoopBack 1.0.0
2013-09-04 16:44:22 -07:00
Raymond Feng
f5c1600d84
Update license file
2013-09-04 14:46:31 -07:00
Raymond Feng
7ddc84747f
Merge pull request #10 from strongloop/internal-prop-prefix
...
Fix the conflicts between MongoDB _id & juggler's internal prefix
2013-08-30 17:44:21 -07:00
Raymond Feng
038f30cb95
Fix the conflicts between MongoDB _id & juggler's internal prefix
2013-08-30 16:59:17 -07:00
Raymond Feng
bfcd850dfe
Merge pull request #8 from strongloop/id-fix
...
Allows custom name of the id property for the memory connector
2013-08-30 10:59:50 -07:00
Raymond Feng
84a40cc1c6
Merge pull request #7 from strongloop/SLA-422
...
Mark id arguments to be required
2013-08-30 10:49:16 -07:00
Raymond Feng
2ab99c0470
Merge pull request #9 from strongloop/schemaless-fix
...
Schemaless fix
2013-08-29 12:42:55 -07:00
Raymond Feng
f71dc8fe39
Set default value
2013-08-28 21:53:55 -07:00
Raymond Feng
c2eb1f55f0
Fix the property population for schemaless models
2013-08-28 21:49:05 -07:00
Raymond Feng
28cf9bdd1e
Adjust the lines to fit into width of 80
2013-08-28 21:41:11 -07:00
Raymond Feng
0866f33cec
Check the existence of id
2013-08-28 21:39:59 -07:00
Raymond Feng
6f111f8122
Allows custom name of the id property for the memory connector
2013-08-27 22:32:01 -07:00
Raymond Feng
cb00aad473
Mark id arguments to be required
2013-08-27 22:03:59 -07:00
Raymond Feng
8674e67416
Merge pull request #6 from strongloop/strict-mode
...
Set strict to false by default for non-relational data sources
2013-08-27 16:37:45 -07:00
Raymond Feng
300c95c7db
Update titles
2013-08-27 11:07:13 -07:00
Raymond Feng
04ca1a6333
Clean up the test case based on PR reviews
2013-08-27 10:14:49 -07:00
Raymond Feng
59841a04a8
Set strict to false by default for non-relational data sources
2013-08-26 13:38:24 -07:00
Raymond Feng
ecc142b4d2
Disable remoting for reload
2013-08-26 10:54:26 -07:00
Raymond Feng
be15eabc36
Merge pull request #5 from strongloop/memory-connector-ids
...
Track the greatest id to prevent records from being overriden
2013-08-26 10:52:13 -07:00