Java Maven based web project with netbeans

Wish u all r going good, M doing maven based web project, There are total 5 entities I have used 1. Customer 2. Order 3. Product (super) 4. Laptop(sub) 5. Smartphone (sub), Now I joined entities, customer-order (1-Many), Product (1)-Laptop(M), Product (1)-Smartphone(M). My project structure is like this customer package: customer customerController customerEJB Smartphone package:…

Table view row height doesn’t work in iOS

I would like to change dynamically the height of the selected row. The documentation says heightForRowAtIndexPath: is the best way to do so. I got here so far. The tap is detected but the row height doesn’t change: override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { func tableView(tableView: UITableView, heightForRowAt: IndexPath) -> CGFloat {…

SQL – how i get average employee salary for each department

this is the uml for the tables https://dev.mysql.com/doc/employee/en/sakila-structure.html and this my attempt SELECT CONCAT(employees.first_name,’ ‘,employees.last_name) AS ‘EmployeeName’, salaries.emp_no AS ‘Employee Number’ , departments.dept_no AS’Department Number’, departments.dept_name AS’Department name’, AVG(salaries.salary) AS ‘Average salary’ FROM salaries INNER JOIN dept_emp ON salaries.emp_no = dept_emp.emp_no INNER JOIN employees ON salaries.emp_no = employees.emp_no INNER JOIN departments ON dept_emp.dept_no = departments.dept_no…

render an image binary data into a img or canvas tag

I have a route which I use to request images, something like this: /api/image it returns the body the file data, something like: ����JFIF��C��C��� �� �����+�}Yϭ�F39M>���������>���;��ˋ��uXʽ�w�ڤx-[2g��k�S���H���m [�V?[_W����#��v��}6�[��F�F�%����n�… what I’m trying to do is something like this: <canvas> then i did this: code: var canvas = $(‘canvas’); var blob = new Blob([file], {type: ‘image/png’}); var url…