===============================PomS Start================================
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.myproject.web</groupId>
<artifactId>myproject-web</artifactId>
...
Fail maven.plugin
Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project
in pom.xml-->build -->plugins-->add plugin
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
...
Spring load .property file and get
test.property [src/main/resource]
------------
#main
kk=directory/kk
main.wide=this/wide
----------spring
import java.io.InputStream;
import java.util.Properties;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
@Component
@Scope("singleton")
public class PropertiesUtil {
private InputStream input;
private Properties properties ;
public...
HQL One to many join query
Enity Relation
class Player {
List<Item> inventory;
}
class Item {
List<Enchantment> enchantments;
}
class Enchantment {
boolean isSuperiorEnchantment;
}
Select Query
select p
from Player as p
left join p.inventory as i
left join i.enchantments as e
where e.isSuperiorEnchantment = 1
...
MAVEN
Posted by Mantled with No comments
Prepare Eclipse
project folder -->mvn eclipse:eclipse
Normal Clean
project folder -->mvn clean;
Normal Build
project folder -->mvn install;
Normal Clean and Build
project folder -->mvn clean install...
SQL TABLE -MAPPING- FOREIGN KEY RELATION
Posted by Mantled with No comments

CREATION & DROP
//Table-----------------Application---------
DROP TABLE IF EXISTS `myschema`.`application`;
CREATE TABLE `myschema`.`application` (
`APPLICATION_ID` int(11) unsigned NOT NULL AUTO_INCREMENT,
`APPLICATION_NAME` varchar(255) NOT NULL,
`CREATED_AT` timestamp...
Abstract class
Posted by Mantled with No comments
class that is declared using “abstract” keyword;
may or may not include abstract methods ( has no body)and concrete methods (methods with body) ;
we can not allowed to create object of Abstract class,
An abstract class has no use until unless it is extended by some other class ,logic...
Subscribe to:
Posts (Atom)