Skip to content
This repository
Browse code

Added package entity and DTO

  • Loading branch information...
commit 2fd014257d56af421eeb022f6ef1e26c8de64054 1 parent 0030507
Willie Wheeler authored
27 api/src/main/java/org/zkybase/cmdb/api/domain/PackageEntity.java
... ... @@ -0,0 +1,27 @@
  1 +/*
  2 + * Copyright 2011-2012 the original author or authors.
  3 + *
  4 + * Licensed under the Apache License, Version 2.0 (the "License");
  5 + * you may not use this file except in compliance with the License.
  6 + * You may obtain a copy of the License at
  7 + *
  8 + * http://www.apache.org/licenses/LICENSE-2.0
  9 + *
  10 + * Unless required by applicable law or agreed to in writing, software
  11 + * distributed under the License is distributed on an "AS IS" BASIS,
  12 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13 + * See the License for the specific language governing permissions and
  14 + * limitations under the License.
  15 + */
  16 +package org.zkybase.cmdb.api.domain;
  17 +
  18 +/**
  19 + * @author Willie Wheeler (willie.wheeler@gmail.com)
  20 + */
  21 +public class PackageEntity extends AbstractEntity {
  22 + private String version;
  23 +
  24 + public String getVersion() { return version; }
  25 +
  26 + public void setVersion(String version) { this.version = version; }
  27 +}
21 api/src/test/java/org/zkybase/cmdb/api/domain/PackageEntityTestCase.java
... ... @@ -0,0 +1,21 @@
  1 +/*
  2 + * Copyright 2011-2012 the original author or authors.
  3 + *
  4 + * Licensed under the Apache License, Version 2.0 (the "License");
  5 + * you may not use this file except in compliance with the License.
  6 + * You may obtain a copy of the License at
  7 + *
  8 + * http://www.apache.org/licenses/LICENSE-2.0
  9 + *
  10 + * Unless required by applicable law or agreed to in writing, software
  11 + * distributed under the License is distributed on an "AS IS" BASIS,
  12 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13 + * See the License for the specific language governing permissions and
  14 + * limitations under the License.
  15 + */
  16 +package org.zkybase.cmdb.api.domain;
  17 +
  18 +/**
  19 + * @author Willie Wheeler (willie.wheeler@gmail.com)
  20 + */
  21 +public class PackageEntityTestCase extends AbstractEntityTestCase<PackageEntity> { }
27 dto/src/main/java/org/zkybase/cmdb/dto/Package.java
... ... @@ -0,0 +1,27 @@
  1 +/*
  2 + * Copyright 2011-2012 the original author or authors.
  3 + *
  4 + * Licensed under the Apache License, Version 2.0 (the "License");
  5 + * you may not use this file except in compliance with the License.
  6 + * You may obtain a copy of the License at
  7 + *
  8 + * http://www.apache.org/licenses/LICENSE-2.0
  9 + *
  10 + * Unless required by applicable law or agreed to in writing, software
  11 + * distributed under the License is distributed on an "AS IS" BASIS,
  12 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13 + * See the License for the specific language governing permissions and
  14 + * limitations under the License.
  15 + */
  16 +package org.zkybase.cmdb.dto;
  17 +
  18 +/**
  19 + * @author Willie Wheeler (willie.wheeler@gmail.com)
  20 + */
  21 +public class Package extends AbstractDto {
  22 + private String version;
  23 +
  24 + public String getVersion() { return version; }
  25 +
  26 + public void setVersion(String version) { this.version = version; }
  27 +}
23 dto/src/test/java/org/zkybase/cmdb/dto/PackageTestCase.java
... ... @@ -0,0 +1,23 @@
  1 +/*
  2 + * Copyright 2011-2012 the original author or authors.
  3 + *
  4 + * Licensed under the Apache License, Version 2.0 (the "License");
  5 + * you may not use this file except in compliance with the License.
  6 + * You may obtain a copy of the License at
  7 + *
  8 + * http://www.apache.org/licenses/LICENSE-2.0
  9 + *
  10 + * Unless required by applicable law or agreed to in writing, software
  11 + * distributed under the License is distributed on an "AS IS" BASIS,
  12 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13 + * See the License for the specific language governing permissions and
  14 + * limitations under the License.
  15 + */
  16 +package org.zkybase.cmdb.dto;
  17 +
  18 +import org.zkybase.cmdb.test.AbstractBeanTestCase;
  19 +
  20 +/**
  21 + * @author Willie Wheeler (willie.wheeler@gmail.com)
  22 + */
  23 +public class PackageTestCase extends AbstractBeanTestCase<Package> { }

0 comments on commit 2fd0142

Please sign in to comment.
Something went wrong with that request. Please try again.