concept entity in category liferay

appears as: n Entity, entities, entity, entities, n entity, entity
Liferay in Action: The Official Guide to Liferay Portal Development

This is an excerpt from Manning's book Liferay in Action: The Official Guide to Liferay Portal Development.

Defining an Entity

Now we get to the cool stuff. The database entity—here, a PRProduct—is defined using the Entity tag . The two parameters in this tag define how you want Service Builder to generate the service that retrieves and saves these entities. You need to at least have a local service. But you can also have a remote service. This isn’t an EJB; it’s instead a web service, complete with a WSDL document describing it, so your service may participate as part of a Service Oriented Architecture (SOA).

The focus of this chapter is how you can implement these features in your own applications. We’ll look together at workflow-enabling, tagging and categorizing data, and adding discussions and ratings to applications. When we’ve finished with that, you’ll enhance your Service Builder skills by adding a custom, SQL-based query so that you can sort entities by their ratings. Building on the skills you’ve already learned, you’ll take advantage of the collaboration APIs that Liferay provides.

Listing 7.2. Adding an entity with assets