diff options
Diffstat (limited to 'cps-ri/src/main/java/org/onap/cps/spi/entities/YangResourceEntity.java')
-rw-r--r-- | cps-ri/src/main/java/org/onap/cps/spi/entities/YangResourceEntity.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cps-ri/src/main/java/org/onap/cps/spi/entities/YangResourceEntity.java b/cps-ri/src/main/java/org/onap/cps/spi/entities/YangResourceEntity.java index 4763d68f6..032745b5e 100644 --- a/cps-ri/src/main/java/org/onap/cps/spi/entities/YangResourceEntity.java +++ b/cps-ri/src/main/java/org/onap/cps/spi/entities/YangResourceEntity.java @@ -1,6 +1,7 @@ /* * ============LICENSE_START======================================================= * Copyright (C) 2020 Pantheon.tech + * Modifications Copyright (C) 2021 Nordix Foundation * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -61,6 +62,14 @@ public class YangResourceEntity implements Serializable { @Column private String content; + @NotNull + @Column + private String moduleName; + + @NotNull + @Column + private String revision; + @ManyToMany(mappedBy = "yangResources") private Set<SchemaSetEntity> schemaSets; |