Navigation Bar with Dropdown
Add a dropdown menu inside the navigation bar:
To highlight the current tab/page the user is on, add a color class, and use JavaScript to update the active link.
London is the capital city of England.
Paris is the capital of France.
Tokyo is the capital of Japan.
An accordion is used to show (and hide) HTML content:
Some text..
public class CreateEmployee { public static void main( String[ ] args ) { EntityManagerFactory emfactory = Persistence.createEntityManagerFactory( "Eclipselink_JPA" ); EntityManager entitymanager = emfactory.createEntityManager( ); entitymanager.getTransaction( ).begin( ); Employee employee = new Employee( ); employee.setEid( 1201 ); employee.setEname( "Gopal" ); employee.setSalary( 40000 ); employee.setDeg( "Technical Manager" ); entitymanager.persist( employee ); entitymanager.getTransaction( ).commit( ); entitymanager.close( ); emfactory.close( ); } }
1
2
3
4
5
6
| InventoryRepository repo = context .getBean(InventoryRepository.class);MerchandiseEntity pants = new MerchandiseEntity( "Pair of Pants", BigDecimal.ONE);pants = repo.save(pants); |
1
2
3
| MerchandiseEntity pants = new MerchandiseEntity( "Pair of Pants", 34.99);pants = repo.save(pants); |
1
2
3
| MerchandiseEntity pantsInDB = repo.findById(pantsId).get(); pantsInDB.setPrice(44.99); repo.save(pantsInDB); |
