Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(628)

Side by Side Diff: lib/db/metamodel.dart

Issue 696263002: Fix metamodel.dart: Use model's static member (Closed) Base URL: git@github.com:dart-lang/gcloud.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library gcloud.db.meta_model; 5 library gcloud.db.meta_model;
6 6
7 import '../db.dart' as db; 7 import '../db.dart' as db;
8 8
9 @db.Kind(name: '__namespace__') 9 @db.Kind(name: '__namespace__')
10 class Namespace extends db.ExpandoModel { 10 class Namespace extends db.ExpandoModel {
11 static const int EmptyNamespaceId = 1; 11 static const int EmptyNamespaceId = 1;
12 12
13 String get name { 13 String get name {
14 // The default namespace will be reported with id 1. 14 // The default namespace will be reported with id 1.
15 if (id == NamespaceDescription.EmptyNamespaceId) return null; 15 if (id == Namespace.EmptyNamespaceId) return null;
16 return id; 16 return id;
17 } 17 }
18 } 18 }
19 19
20 @db.Kind(name: '__kind__') 20 @db.Kind(name: '__kind__')
21 class Kind extends db.Model { 21 class Kind extends db.Model {
22 String get name => id; 22 String get name => id;
23 } 23 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698