EclipseLink / JPA Annotations – @MappedSuperclass

eclipse-thumbnail

This tutorial will explain the using of @MappedSuperclass, that could be considered as an alternative choice for sharing a persistent entity state and mapping information. An entity may inherit from a super class that provides a persistent entity state and mapping information as we’ve seen previously in the @Inheritance tutorials. Unlike using of @Inheritance, the […]

EclipseLink / JPA Annotations – @Inheritance With Table Per Concrete Strategy

eclipse-thumbnail

The inheritance is one of the most scenarios that can be encountered once we’ve been coming into business field. Inside the Java Persistence API (JPA) The entities support inheritance, polymorphic, polymorphic associations, and polymorphic queries. Both abstract and concrete classes can be entities, and both of them can be annotated with the @Entity¬†annotation, mapped as […]

JSTL Function fn:substringBefore()

java-ee-thumbnail

The <fn: substringBefore> is function of JSTL which is used to extract the part of the string before the specified substring. Syntax Of <fn: substringBefore> Tag Example Details of the Code < c:set var=”str” value=”hello world!!!! Welcome to JavaBeat”> tag is used to set variable name and to display result in the output using value […]

JSTL Function fn:substringAfter()

java-ee-thumbnail

The <fn: substringAfter> is function of JSTL which is used to extract the part of the string after the specified substring. Syntax Of <fn: substringAfter> Tag Example Details of the Code < c:set var=”str” value=”hello world..Welcome to JavaBeat”> tag is used to set variable name and to display result in the output using value attribute. […]

JSTL Functions

java-ee-thumbnail

JSTL function tag library contains set of string manipulation functions that can be used with the JSP Expression Language. Syntax of JSTL Functions Tag Library JSTL Function Tags <fn:contains()>: It is used to check whether string contains specified sub string or not. <fn:containsIgnoreCase()>:It returns true if string contains specified substring ,ignores case and also returns […]

JSTL SQL sql:setDataSource Tag

java-ee-thumbnail

The <sql:setDataSource> tag is used to create data source variable directly from JSP and it can be stored in a scoped variable with the help of scoped attribute. It can be used as input to other database actions. Attributes of <sql:setDataSource> Tag datasource: It specify data source name or java.sql.DataSource object. driver: It specifies JDBC […]

JSTL XML x:parse Tag

java-ee-thumbnail

The <x: parse> tag is used to parse the xml content and the result will be stored in specified variable. Syntax Of <x: parse> Tag Attributes Of <x: parse> Tag Attributes Description doc Specifies that source XML document to be parsed. systemId Specifies the system identifier in xml document for parsing. filter Filter object is […]

JSTL XML x:set Tag

java-ee-thumbnail

The <x: set> tag is used to store the result of xml path expression in scoped variable. Syntax of <x: set> Tag Attributes of <x: set> Tag Example Details of the Code <c:set var=”fruit”> tag is used to set the variable name which we want to display in the output. <x:parse xml=”${fruit}” var=”output”/> tag is […]

JSTL XML x:forEach Tag

java-ee-thumbnail

The <x: forEach> tag is used for looping a list of elements in an xml document. Syntax of <x: forEach> Tag Attributes of <x: forEach> Tag Example Details of the Code <c:set var=”fruitss”> tag is used to set the variable name which we want to display in the output. <x:parse xml=”${fruitss}” var=”output”/> tag is used […]

JSTL SQL sql:transaction Tag

java-ee-thumbnail

Transaction means handling set of tasks into single execution unit. It provides connection to all data base operations and executes all statements in one transaction. This tag combines both and tags into transactions. We can add and statements into to make single transaction. Attributes of <sql:transaction> Tag dataSource: It specifies datasource for the connection. isolation:It […]