Skip to content

Commit 232e515

Browse files
author
veosaf
committed
fix date format issue
1 parent c1f028f commit 232e515

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@
3131
<artifactId>spring-boot-starter-tomcat</artifactId>
3232
<scope>provided</scope>
3333
</dependency>
34-
<dependency>
35-
<groupId>com.fasterxml.jackson.datatype</groupId>
36-
<artifactId>jackson-datatype-jsr310</artifactId>
37-
</dependency>
3834
<dependency>
3935
<groupId>org.springframework.boot</groupId>
4036
<artifactId>spring-boot-starter-web</artifactId>

src/main/java/com/veosaf/bookRental/models/Book.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
import javax.persistence.Id;
1414
import javax.persistence.OneToMany;
1515
import javax.persistence.Table;
16-
import javax.persistence.Temporal;
17-
import javax.persistence.TemporalType;
1816

1917
@Entity
2018
@Table(name = "BOOK")
@@ -36,7 +34,6 @@ public class Book implements java.io.Serializable {
3634
@Column(name = "AUTHOR", length = 45)
3735
private String author;
3836

39-
@Temporal(TemporalType.DATE)
4037
@Column(name = "PUBLICATION_DATE", length = 0)
4138
private Date publicationDate;
4239

web/app/features/books/bookDetails.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ <h4>View Book ID#{{book.id}}</h4>
6060
<div class="form-group col col-md-6">
6161
<label class="control-label col-md-4" for="title">Title</label>
6262
<div class="col-md-8">
63-
<input type="text" class="form-control" id="title" placeholder="Enter title" ng-model="book.title" autocomplete="off" disabled>
63+
<input type="text" class="form-control" id="title" ng-model="book.title" autocomplete="off" disabled>
6464
</div>
6565
</div>
6666
<div class="form-group col col-md-6">
6767
<label class="control-label col-md-4" for="author">Author</label>
6868
<div class="col-md-8">
69-
<input type="text" class="form-control" id="author" placeholder="Enter author" ng-model="book.author" autocomplete="off"
69+
<input type="text" class="form-control" id="author" ng-model="book.author" autocomplete="off"
7070
disabled>
7171
</div>
7272
</div>
@@ -76,7 +76,7 @@ <h4>View Book ID#{{book.id}}</h4>
7676
<label class="control-label col-md-4" for="pubDate">Publication Date</label>
7777
<div class="input-group date col col-md-8" data-provide="datepicker" data-date-format="dd/mm/yyyy">
7878
<div>
79-
<input id="pubDate" type="text" class="form-control" ng-model="book.publicationDate" placeholder="Enter Publication Date"
79+
<input id="pubDate" type="text" class="form-control" ng-model="book.publicationDate"
8080
autocomplete="off" disabled>
8181
</div>
8282
<div class="input-group-addon">

web/app/features/books/bookListController.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ var BookListController = function($scope, $http, $location, BookService, $routeP
2525
],
2626
data: bookList,
2727
columns: [
28-
{data: 'title'},
29-
{data: 'author'},
30-
{data: 'publicationDate'}
28+
{data: 'title', defaultContent: ''},
29+
{data: 'author', defaultContent: ''},
30+
{data: 'publicationDate', defaultContent: ''}
3131
]
3232
});
3333
initDatatableEvents(bookTable);

0 commit comments

Comments
 (0)