SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
How to integrate Vaadin UI framework with JavaEE stack? This presentation will tell you all about it including intro to Vaadin and EE as well as to VaadinCDI addon.
Entrepreneur, Consultant & Freelancer @ BeanBakers. Working actively with Vaadin technologies and Java since 2009
How to integrate Vaadin UI framework with JavaEE stack? This presentation will tell you all about it including intro to Vaadin and EE as well as to VaadinCDI addon.
34.
Customer
@Entity
______________________________
@Id
@AutoGenerated
Long id;
@Column(nullable = false)
String name;
Date birthdate;
35.
Customer
@Entity
______________________________
Customer
Id name birthdate
1 Alex 07.02.1984
2 John 18.2.1992
@Id
@AutoGenerated
Long id;
@Column(nullable = false)
String name;
Date birthdate;
36.
Customer
@Id
@AutoGenerated
Long id;
@Column(nullable = false)
String name;
Date birthdate;
@OneToMany(mappedBy=“customer”)
List<Invoice> invoices;
@Entity
______________________________
Customer
Id name birthdate
1 Alex 07.02.1984
2 John 18.2.1992
Invoice
Id customer number
1 1 123
2 1 124
87.
1980s
Influenced by SmallTalk-80
Model, View, Presenter,
Interactors, Commands, Selections
Taligent Model-View-Presenter
Presenter orchestrates the
structure, not the input
90.
late
1980s
Simplified Taligent MVP
Dolphin-Smalltalk MVP
91.
late
1980s
Simplified Taligent MVP
View handles events by notifying
presenter
Dolphin-Smalltalk MVP
92.
late
1980s
Simplified Taligent MVP
View handles events by notifying
presenter
Dolphin-Smalltalk MVP
Presenter handles the logic,
not the user input control
93.
late
1980s
Simplified Taligent MVP
View handles events by notifying
presenter
Dolphin-Smalltalk MVP
Presenter handles the logic,
not the user input control
94.
UI layer MVP targets
Clean code best practices
like…
95.
Single responsibility principle
Class should have only one reason to change
137.
What did we learn today?
1. Java EE contains tons of specifications for enterprise apps
138.
What did we learn today?
1. Java EE contains tons of specifications for enterprise apps
2. Vaadin is a great way to assemble UIs with components
139.
What did we learn today?
1. Java EE contains tons of specifications for enterprise apps
2. Vaadin is a great way to assemble UIs with components
3. Combining Vaadin with Java EE works best through CDI
140.
What did we learn today?
1. Java EE contains tons of specifications for enterprise apps
2. Vaadin is a great way to assemble UIs with components
3. Combining Vaadin with Java EE works best through CDI
4. Write maintainable code by following best practices
141.
Get the book!
vaadin.com/book
PDF, ePub, HTML
Vol 1
288 pages
Vol 2
434 pages
142.
Rate the
presentation
gwtcreate.com/agenda
Peter Lehto
@peter_lehto
Vaadin Expert & trainer
143.
Rate the
presentation
gwtcreate.com/agenda
Peter Lehto
@peter_lehto
Vaadin Expert & trainer