At this tutorial we’ll introduce using of @AttributeOverride and @AssocationOverride that mentioned intentionally at the @MappedSuperclass tutorial. As you’ve remembered at @MappedSuperclass annotation tutorial, we’ve mentioned at the Database Design section the possibility of using @AttributeOverride and @AssociationOverride to override the attributes and associations that inherited from the mapped superclass. An entity can inherit a persistent entity state and […]
EclipseLink / JPA Annotations – @MappedSuperclass
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
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()
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()
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
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
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
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
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
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 […]
- « Previous Page
- 1
- 2
- 3
- 4
- 5
- 6
- …
- 21
- Next Page »