Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Java EE 8 Development with Eclipse

You're reading from   Java EE 8 Development with Eclipse Develop, test, and troubleshoot Java Enterprise applications rapidly with Eclipse

Arrow left icon
Product type Paperback
Published in Jun 2018
Publisher
ISBN-13 9781788833776
Length 596 pages
Edition 3rd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ram Kulkarni Ram Kulkarni
Author Profile Icon Ram Kulkarni
Ram Kulkarni
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

1. Introducing JEE and Eclipse FREE CHAPTER 2. Creating a Simple JEE Web Application 3. Source Control Management in Eclipse 4. Creating JEE Database Applications 5. Unit Testing 6. Debugging the JEE Application 7. Creating JEE Applications with EJB 8. Creating Web Applications with Spring MVC 9. Creating Web Services 10. Asynchronous Programming with JMS 11. Java CPU Profiling and Memory Tracking 12. Microservices 13. Deploying JEE Applications in the Cloud 14. Securing JEE Applications 15. Other Books You May Enjoy

JAXB

JAXB provides an easy way to convert XML or JSON representations of data into Java objects and vice versa. Using simple annotations, you can have a JAXB implementation create XML or JSON data from a Java object or create a Java object from XML or JSON.


To understand how Java data types are mapped to XML schema types in JAXB, refer to https://docs.oracle.com/javase/tutorial/jaxb/intro/bind.html.

The following are a few important JAXB annotations:

  • @XmlRootElement: This annotation specifies the root element of the XML document and is typically used at the class level.
  • @XmlElement: This annotation specifies an XML element that is not a root element. Java class members can be marked as XMLElement when the class is annotated with @XmlRootElement.
  • @XmlAttribute: This annotation marks a member of the Java class as an attribute of the parent XML element.
  • @XmlAccessorType...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image