Welcome!

Java IoT Authors: Yeshim Deniz, Liz McMillan, Pat Romanski, Elizabeth White, Zakia Bouachraoui

Related Topics: Java IoT

Java IoT: News Item

OpenXava 3.1.3: Productivity and Flexibility for Java EE

OpenXava 3.1.3 is a framework to develop Java Enterprise applications in a different way

OpenXava 3.1.3 is a framework to develop Java Enterprise applications in a different way: OpenXava avoids MVC. It's a JPA Application Engine in that you provide only your POJOs annotated with JPA and you obtain an application ready for production.

Productivity
With OpenXava, you only need to write your model, POJOs with annotations. You do not need to write the view, and the controller (for CRUD, printing, etc) is reused.

That is, you only write a class as this one:

@Entity
public class Teacher {

@Id @Column(length=5) @Required
private String id;

@Column(length=40) @Required
private String name;

// Getters and setters

}

And you have an application (see it here) for CRUD, report generation in PDF, export to Excel, searching, sorting, validations etc. You only need to write a simple Java class, no XMLs, no JSPs and no code generation.

OpenXava is not only for writing simple CRUDs for simple classes, you can create sophisticated applications with complex logic and advanced UI. OpenXava supports references, collections, inheritance, nested tabs, nested frames for grouping, etc.

Flexibility
Given OpenXava was used since its very beginning to develop real life business application (not mere prototypes) it has a high level of flexibility thanks to its powerful declarative view annotations, the custom editors for properties, and the option of creating the view by hand.
Moreover, since this new 3.1.3 version, OpenXava allows you to define the way the user interface is generated. This is possible because you can declare custom editors for references (@ManyToOne, @OneToOne) and collections (@OneToMany, @ManyToMany). That is, if you have this collection in your JPA entity:

@OneToMany(mappedBy="parent", cascade=CascadeType.REMOVE)
private Collection<BlogComment> comments;

Then OpenXava produces a generic user interface for the collection, just like the one in this demo. If this user interface is not suitable for this case you can use the @Editor annotation:

@OneToMany(mappedBy="parent", cascade=CascadeType.REMOVE)
@Editor("BlogComments")
private Collection<BlogComment> comments;

And you have your editor defined in editors.xml thus:

<editor name="BlogComments" url="blogCommentsEditor.jsp"/>

If you have BlogComment collections scattered accross your application, you can define the editor as following:

<editor url="blogCommentsEditor.jsp">
<for-collection model="BlogComment"/>
</editor>

In this way you do not need to use @Editor in each BlogComment collection.
Also, you can define the default editor for all collections or references, as following:

<editor name="MyCollection" url="myCollectionEditor.jsp">
<for-collections/>
</editor>
<editor name="MyReference" url="myReferenceEditor.jsp">
<for-references/>
</editor>

Thus, all the collections and references of the application will be render with your own editors. So, you are defining the way the user interface generator of OpenXava works.

More info: http://www.openxava.org/

More Stories By Javier Paniza

Javier Paniza is the project lead for OpenXava project. He works as software developer at Gestión 400, a software company for public administration in Spain. He has been developing with Java Enterprise since 1998. Also he has been J2EE mentor for development teams in banking projects.

IoT & Smart Cities Stories
"The Striim platform is a full end-to-end streaming integration and analytics platform that is middleware that covers a lot of different use cases," explained Steve Wilkes, Founder and CTO at Striim, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
The deluge of IoT sensor data collected from connected devices and the powerful AI required to make that data actionable are giving rise to a hybrid ecosystem in which cloud, on-prem and edge processes become interweaved. Attendees will learn how emerging composable infrastructure solutions deliver the adaptive architecture needed to manage this new data reality. Machine learning algorithms can better anticipate data storms and automate resources to support surges, including fully scalable GPU-c...
Predicting the future has never been more challenging - not because of the lack of data but because of the flood of ungoverned and risk laden information. Microsoft states that 2.5 exabytes of data are created every day. Expectations and reliance on data are being pushed to the limits, as demands around hybrid options continue to grow.
Dion Hinchcliffe is an internationally recognized digital expert, bestselling book author, frequent keynote speaker, analyst, futurist, and transformation expert based in Washington, DC. He is currently Chief Strategy Officer at the industry-leading digital strategy and online community solutions firm, 7Summits.
The explosion of new web/cloud/IoT-based applications and the data they generate are transforming our world right before our eyes. In this rush to adopt these new technologies, organizations are often ignoring fundamental questions concerning who owns the data and failing to ask for permission to conduct invasive surveillance of their customers. Organizations that are not transparent about how their systems gather data telemetry without offering shared data ownership risk product rejection, regu...
Bill Schmarzo, author of "Big Data: Understanding How Data Powers Big Business" and "Big Data MBA: Driving Business Strategies with Data Science," is responsible for setting the strategy and defining the Big Data service offerings and capabilities for EMC Global Services Big Data Practice. As the CTO for the Big Data Practice, he is responsible for working with organizations to help them identify where and how to start their big data journeys. He's written several white papers, is an avid blogge...
When talking IoT we often focus on the devices, the sensors, the hardware itself. The new smart appliances, the new smart or self-driving cars (which are amalgamations of many ‘things'). When we are looking at the world of IoT, we should take a step back, look at the big picture. What value are these devices providing. IoT is not about the devices, its about the data consumed and generated. The devices are tools, mechanisms, conduits. This paper discusses the considerations when dealing with the...
Machine learning has taken residence at our cities' cores and now we can finally have "smart cities." Cities are a collection of buildings made to provide the structure and safety necessary for people to function, create and survive. Buildings are a pool of ever-changing performance data from large automated systems such as heating and cooling to the people that live and work within them. Through machine learning, buildings can optimize performance, reduce costs, and improve occupant comfort by ...
René Bostic is the Technical VP of the IBM Cloud Unit in North America. Enjoying her career with IBM during the modern millennial technological era, she is an expert in cloud computing, DevOps and emerging cloud technologies such as Blockchain. Her strengths and core competencies include a proven record of accomplishments in consensus building at all levels to assess, plan, and implement enterprise and cloud computing solutions. René is a member of the Society of Women Engineers (SWE) and a m...
Business professionals no longer wonder if they'll migrate to the cloud; it's now a matter of when. The cloud environment has proved to be a major force in transitioning to an agile business model that enables quick decisions and fast implementation that solidify customer relationships. And when the cloud is combined with the power of cognitive computing, it drives innovation and transformation that achieves astounding competitive advantage.