LH :: Added description to the models

- Added a few new photos
This commit is contained in:
Lim Han 2015-02-07 11:55:46 +08:00
parent 77337a1fce
commit 7119ed8099
26 changed files with 41 additions and 59 deletions

View file

@ -35,8 +35,19 @@ public class Person extends BaseEntity {
@Column(name = "last_name")
@NotEmpty
protected String lastName;
@Column(name = "profile_description")
protected String description;
public String getFirstName() {
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getFirstName() {
return this.firstName;
}
@ -52,5 +63,4 @@ public class Person extends BaseEntity {
this.lastName = lastName;
}
}

View file

@ -64,7 +64,7 @@ public class JdbcVetRepositoryImpl implements VetRepository {
List<Vet> vets = new ArrayList<Vet>();
// Retrieve the list of all vets.
vets.addAll(this.jdbcTemplate.query(
"SELECT id, first_name, last_name FROM vets ORDER BY last_name,first_name",
"SELECT id, first_name, last_name, profile_description FROM vets ORDER BY last_name,first_name",
ParameterizedBeanPropertyRowMapper.newInstance(Vet.class)));
// Retrieve the list of all possible specialties.

View file

@ -11,7 +11,7 @@ CREATE TABLE vets (
id INTEGER IDENTITY PRIMARY KEY,
first_name VARCHAR(30),
last_name VARCHAR(30),
profile_pic BLOB
profile_description VARCHAR(255)
);
CREATE INDEX vets_last_name ON vets (last_name);
@ -41,7 +41,7 @@ CREATE TABLE owners (
address VARCHAR(255),
city VARCHAR(80),
telephone VARCHAR(20),
profile_pic BLOB
profile_description VARCHAR(255)
);
CREATE INDEX owners_last_name ON owners (last_name);
@ -51,7 +51,7 @@ CREATE TABLE pets (
birth_date DATE,
type_id INTEGER NOT NULL,
owner_id INTEGER NOT NULL,
profile_pic BLOB
profile_description VARCHAR(255)
);
ALTER TABLE pets ADD CONSTRAINT fk_pets_owners FOREIGN KEY (owner_id) REFERENCES owners (id);
ALTER TABLE pets ADD CONSTRAINT fk_pets_types FOREIGN KEY (type_id) REFERENCES types (id);

View file

@ -1,9 +1,9 @@
INSERT INTO vets VALUES (1, 'James', 'Carter', NULL);
INSERT INTO vets VALUES (2, 'Helen', 'Leary', NULL);
INSERT INTO vets VALUES (3, 'Linda', 'Douglas', NULL);
INSERT INTO vets VALUES (4, 'Rafael', 'Ortega', NULL);
INSERT INTO vets VALUES (5, 'Henry', 'Stevens', NULL);
INSERT INTO vets VALUES (6, 'Sharon', 'Jenkins', NULL);
INSERT INTO vets VALUES (1, 'James', 'Carter', 'Graduated from Oxford University in 2000 having "gone the long way around" picking up degrees in Agriculture & Applied Zoology and also in Animal Production along the way. He came down to work in Winchester in 2004 and set up PetClinic in 2005.');
INSERT INTO vets VALUES (2, 'Helen', 'Leary', 'MA VetMB MRCVS A Cambridge graduate, Helen joined our expanding team of vets at the end of 2005. Helen has a cat called Checkers and a dog called Scoot.');
INSERT INTO vets VALUES (3, 'Linda', 'Douglas', 'MA VetMB MRCVS Another Cambridge graduate, Linda joined our team in 2004. Linda has a hamster called Ash and a dog called Spotty.');
INSERT INTO vets VALUES (4, 'Rafael', 'Ortega','MA VetMB MRCVS Rafael graduated from Cambridge in 2003 and joined PetClinit in October 2004. He has a particular interest in horseback archery and has competed in many international competitions.');
INSERT INTO vets VALUES (5, 'Henry', 'Stevens', 'MA VetMB MRCVS Henry graduated from Oxford in 2008 and joined us in 2010. He is also a competitive chess player and has participated in many international competitions.');
INSERT INTO vets VALUES (6, 'Sharon', 'Jenkins','MA VetMB MRCVS Sharon graduated from Oxford in 2006 and joined us in 2007. She joins international salsa competitions and consider herself an accomplished dancer.');
INSERT INTO specialties VALUES (1, 'radiology');
INSERT INTO specialties VALUES (2, 'surgery');

View file

@ -17,7 +17,7 @@
<!--<logger name="org.hibernate" level="debug"/> -->
<logger name="org.springframework.samples.petclinic" level="debug"/>
<root level="debug">
<root level="info">
<appender-ref ref="console"/>
</root>
</configuration>

View file

@ -4,7 +4,7 @@
<div class="row thumbnail-wrapper">
<div class="col-md-3" data-ng-repeat="vet in vets | limitTo : 8">
<div class="thumbnail">
<img data-ng-src="images/avatars/vet{{vet.id%4 + 1}}.jpg" class="img-circle" alt="Generic placeholder image">
<img data-ng-src="images/vets/vet{{vet.id%4 + 1}}.jpg" class="img-circle" alt="Generic placeholder image">
<div class="caption">
<h3 class="caption-heading" data-ng-bind="'Dr. ' + vet.firstName + ' ' + vet.lastName"></h3>
<p class="caption-meta"><span class="glyphicon glyphicon-phone-alt"></span> +6085558763</p>

View file

@ -4,8 +4,10 @@
<img class="img-thumbnail" src="images/services/service1.jpg" alt="Generic placeholder image">
</div>
<div class="col-md-6">
<h3 class="section-heading">Services One</h3>
<p class="section-desc">A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth.</p>
<h3 class="section-heading">Home Visits</h3>
<p class="section-desc">
We provide home visits to your pets in need of care
</p>
<p>
<a class="btn btn-primary" data-ui-sref="landing">Learn more »</a>
</p>

View file

@ -5,65 +5,35 @@
<div class="col-md-8 col-md-offset-2">
<div class="text-center">
<h3 id="veterianarians" class="section-heading">Our Veterinarians</h3>
<p class="section-desc">A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth.</p>
<p class="section-desc">Meet our Veterinarian Team</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="thumbnail">
<img src="images/avatars/vet1.jpg" alt="Generic placeholder image">
<img src="images/vets/vet5.jpg" alt="Generic placeholder image">
<div class="caption">
<h3>Thumbnail label</h3>
<p>Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. </p>
<h3>Professionalism</h3>
<p>Everyone at our practice is committed to providing you with the very best in pet healthcare.</p>
</div>
</div>
</div>
<div class="col-md-3">
<div class="thumbnail">
<img src="images/avatars/vet2.jpg" alt="Generic placeholder image">
<img src="images/vets/vet2.jpg" alt="Generic placeholder image">
<div class="caption">
<h3>Thumbnail label</h3>
<p>Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum.</p>
<h3>Expertise</h3>
<p>Our veterinary team bring a wealth of experience to the practice and have individually obtained high standards of professional qualifications</p>
</div>
</div>
</div>
<div class="col-md-3">
<div class="thumbnail">
<img src="images/avatars/vet3.jpg" alt="Generic placeholder image">
<img src="images/vets/vet3.jpg" alt="Generic placeholder image">
<div class="caption">
<h3>Thumbnail label</h3>
<p>Mountains, she had a last view back on the skyline of her hometown Bookmarksgrove, the headline of Alphabet Village and the subline of her own road, the Line Lane.</p>
</div>
</div>
</div>
</div>
<!-- /row -->
<div class="row">
<div class="col-md-3">
<div class="thumbnail">
<img src="images/avatars/vet4.jpg" alt="Generic placeholder image">
<div class="caption">
<h3>Thumbnail label</h3>
<p>Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum.</p>
</div>
</div>
</div>
<div class="col-md-3">
<div class="thumbnail">
<img src="images/avatars/vet3.jpg" alt="Generic placeholder image">
<div class="caption">
<h3>Thumbnail label</h3>
<p>Mountains, she had a last view back on the skyline of her hometown Bookmarksgrove, the headline of Alphabet Village and the subline of her own road, the Line Lane.</p>
</div>
</div>
</div>
<div class="col-md-6">
<div class="thumbnail">
<img src="images/avatars/vet2.jpg" alt="Generic placeholder image">
<div class="caption">
<h3>Thumbnail label</h3>
<p>The Big Oxmox advised her not to do so, because there were thousands of bad Commas, wild Question Marks and devious Semikoli.</p>
<h3>Dedication</h3>
<p>Our committed team of Veterinarians is dedicated to your pet's welfare and strive to provide the best pet healthcare to them</p>
</div>
</div>
</div>

View file

@ -30,7 +30,7 @@
</div>
<div class="row">
<div class="col-md-3" ng-repeat="pet in pets">
<div class="col-md-3" data-ng-repeat="pet in pets">
<div class="thumbnail">
<a href="#"><img data-ng-src="images/pets/pet{{pet.id % 10 + 1}}.jpg" alt="Generic placeholder image"></a>
<div class="caption">

View file

@ -12,10 +12,10 @@
<div class="row">
<div data-ng-repeat="vet in vets | limitTo : 12" class="col-md-3">
<div class="thumbnail">
<img data-ng-src="images/avatars/vet{{vet.id%4 + 1}}.jpg" alt="Generic placeholder image">
<img data-ng-src="images/vets/vet{{vet.id}}.jpg" alt="Generic placeholder image">
<div class="caption">
<h3 data-ng-bind="'Dr. ' + vet.firstName + ' ' + vet.lastName">Veterinarian Name</h3>
<p>Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum.</p>
<p data-ng-bind="vet.description"></p>
</div>
</div>
</div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View file

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

View file

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

View file

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

View file

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB