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
...
Subscribe to:
Posts (Atom)