Zprovozněny Budovy

multitenant
František Přibyl 11 years ago
parent 4e2faa7c2c
commit 3718e4c088

@ -1,21 +1,13 @@
package info.bukova.isspst.data;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="BUILDING")
public class Building implements DataModel {
public class Building extends BaseData implements DataModel {
@Id
@Column(name="ID")
@GeneratedValue
private int id;
@Column(name="CODE", unique=true)
private String code;
@ -26,19 +18,6 @@ public class Building implements DataModel {
@Column(name="DESCRIPTION")
private String description;
/**
* @return the id
*/
public int getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(int id) {
this.id = id;
}
/**
* @return the code
@ -81,41 +60,4 @@ public class Building implements DataModel {
public void setDescription(String description) {
this.description = description;
}
@Override
public void setCreated(Date created) {
// TODO Auto-generated method stub
}
@Override
public Date getCreated() {
// TODO Auto-generated method stub
return null;
}
@Override
public void setModified(Date modified) {
// TODO Auto-generated method stub
}
@Override
public Date getModified() {
// TODO Auto-generated method stub
return null;
}
@Override
public boolean isValid() {
// TODO Auto-generated method stub
return false;
}
@Override
public void setValid(boolean valid) {
// TODO Auto-generated method stub
}
}

@ -1,5 +1,5 @@
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.dialect=org.hibernate.dialect.MySQLDialect
jdbc.databaseurl=jdbc:mysql://127.0.0.1:3306/isspst?characterEncoding=utf8
jdbc.databaseurl=jdbc:mysql://127.0.0.1:3306/isspst
jdbc.username=root
jdbc.password=xsacfgd

@ -88,6 +88,10 @@
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<bean id="buildingDao" class="info.bukova.isspst.dao.jpa.BuildingDaoJPA">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<bean id="addressDao" class="info.bukova.isspst.dao.jpa.AddressDaoJPA">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
@ -104,6 +108,10 @@
<property name="dao" ref="roleDao"/>
</bean>
<bean id="buildingService" class="info.bukova.isspst.services.BuildingServiceImpl">
<property name="dao" ref="buildingDao"/>
</bean>
<bean id="adbService" class="info.bukova.isspst.services.addressbook.AdbServiceImpl">
<property name="dao" ref="addressDao"/>
<property name="validator" ref="validator"/>

@ -3,13 +3,7 @@
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<window title="${labels.AgendaBuildings}" border="normal" apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('info.bukova.isspst.ui.BuildingList')">
<toolbar>
<toolbarbutton image="/img/add.png" tooltiptext="${labels.ToolbarRecNew}" id="btnNew" onClick="@command('addNew')" disabled="@load(vm.filter)" />
<toolbarbutton image="/img/edit.png" tooltiptext="${labels.ToolbarRecEdit}" id="btnEdit" onClick="@command('edit')" disabled="@load(empty vm.dataBean ? 'true' : 'false')" />
<toolbarbutton image="/img/delete.png" tooltiptext="${labels.ToolbarRecDelete}" id="btnDelete" onClick="@command('delObject')" disabled="@load(empty vm.dataBean ? 'true' : 'false')" />
<toolbarbutton image="/img/funnel.png" tooltiptext="${labels.ToolbarRecFilter}" id="btnFilter" onClick="@command('filter')" />
</toolbar>
<include src="/app/toolbar.zul"/>
<listbox model="@load(vm.dataList)" selectedItem="@bind(vm.dataBean)">
<listhead>

@ -30,13 +30,7 @@
</row>
</rows>
</grid>
<hlayout>
<div hflex="1"></div>
<div>
<button label="${labels.ButtonStorno}" onClick="editWin.detach();"/>
<button label="${labels.ButtonSave}" onClick="@command('save', window=editWin)"/>
</div>
</hlayout>
<include src="/app/formButtons.zul"/>
</vlayout>
</window>
</zk>
Loading…
Cancel
Save